mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 21:54:00 +02:00
[ticket/16346] Fix method arguments
PHPBB3-16346
This commit is contained in:
@@ -15,7 +15,7 @@ class phpbb_event_dispatcher_test extends phpbb_test_case
|
||||
{
|
||||
public function test_trigger_event()
|
||||
{
|
||||
$dispatcher = new \phpbb\event\dispatcher(new phpbb_mock_container_builder());
|
||||
$dispatcher = new \phpbb\event\dispatcher();
|
||||
|
||||
$dispatcher->addListener('core.test_event', function (\phpbb\event\data $event) {
|
||||
$event['foo'] = $event['foo'] . '2';
|
||||
|
@@ -28,7 +28,7 @@ class phpbb_event_export_php_test extends phpbb_test_case
|
||||
{
|
||||
global $phpbb_root_path;
|
||||
$exporter = new \phpbb\event\php_exporter($phpbb_root_path);
|
||||
$files = $exporter->get_recursive_file_list($phpbb_root_path);
|
||||
$files = $exporter->get_recursive_file_list();
|
||||
|
||||
$data_provider = array();
|
||||
foreach ($files as $file)
|
||||
|
@@ -126,7 +126,7 @@ class phpbb_event_md_exporter_test extends phpbb_test_case
|
||||
);
|
||||
foreach ($styles as $path => $filter)
|
||||
{
|
||||
$files = $exporter->get_recursive_file_list($phpbb_root_path . $path, $path);
|
||||
$files = $exporter->get_recursive_file_list($phpbb_root_path . $path);
|
||||
foreach ($files as $file)
|
||||
{
|
||||
$data_provider[] = array($filter, $path . $file);
|
||||
|
Reference in New Issue
Block a user