1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-12 20:02:08 +02:00

[ticket/13124] Add another test case as requested

PHPBB3-13124
This commit is contained in:
Marc Alexander 2014-10-09 13:30:10 -04:00
parent 7bcf6a621f
commit a9ed32663a
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
/**
* Event after the post data has been assigned to the template
*
* @event core.trigger
* @var int start Start item of this page
* @var int current_row_number Number of the post on this page
* @var int end Number of posts on this page
* @var array row Array with original post and user data
* @var array cp_row Custom profile field data of the poster
* @since 3.1.0-a3
*/
$vars = array('start', 'current_row_number', 'end', 'row', 'cp_row');
extract($phpbb_dispatcher->trigger_event('core.trigger', compact($vars)));

View File

@ -61,6 +61,18 @@ class phpbb_event_php_exporter_test extends phpbb_test_case
),
),
),
array(
'trigger_wspace.test',
array(
'core.trigger' => array(
'event' => 'core.trigger',
'file' => 'trigger_wspace.test',
'arguments' => array('cp_row', 'current_row_number', 'end', 'row', 'start'),
'since' => '3.1.0-a3',
'description' => 'Event after the post data has been assigned to the template',
),
),
),
array(
'trigger_many_vars.test',
array(