1
0
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:
rubencm
2020-08-14 18:42:50 +00:00
parent 758c28ca69
commit 490ddbc2cd
46 changed files with 78 additions and 144 deletions

View File

@@ -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';

View File

@@ -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)

View 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);