mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16346] Fix method arguments
PHPBB3-16346
This commit is contained in:
@@ -41,7 +41,7 @@ class phpbb_template_asset_test extends phpbb_test_case
|
||||
$path_helper->method('get_phpbb_root_path')
|
||||
->willReturn($phpbb_root_path);
|
||||
|
||||
$asset = new asset('', $path_helper, new phpbb\filesystem\filesystem());
|
||||
$asset = new asset('', $path_helper);
|
||||
|
||||
$asset->set_path($path, true);
|
||||
$this->assertEquals($expected, $asset->get_path());
|
||||
|
@@ -90,7 +90,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
new \phpbb\event\dispatcher($phpbb_container),
|
||||
new \phpbb\event\dispatcher(),
|
||||
[
|
||||
'cache' => false,
|
||||
'debug' => false,
|
||||
|
@@ -55,7 +55,6 @@ class phpbb_template_allfolder_test extends phpbb_template_template_test_case
|
||||
)
|
||||
);
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||
$context = new \phpbb\template\context();
|
||||
$loader = new \phpbb\template\twig\loader('');
|
||||
@@ -66,7 +65,7 @@ class phpbb_template_allfolder_test extends phpbb_template_template_test_case
|
||||
$cache_path,
|
||||
$this->extension_manager,
|
||||
$loader,
|
||||
new \phpbb\event\dispatcher($container),
|
||||
new \phpbb\event\dispatcher(),
|
||||
array(
|
||||
'cache' => false,
|
||||
'debug' => false,
|
||||
|
@@ -149,7 +149,6 @@ Zeta test event in all',
|
||||
$phpEx
|
||||
);
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||
$context = new \phpbb\template\context();
|
||||
$loader = new \phpbb\template\twig\loader('');
|
||||
@@ -160,7 +159,7 @@ Zeta test event in all',
|
||||
$cache_path,
|
||||
$this->extension_manager,
|
||||
$loader,
|
||||
new \phpbb\event\dispatcher($container),
|
||||
new \phpbb\event\dispatcher(),
|
||||
array(
|
||||
'cache' => false,
|
||||
'debug' => false,
|
||||
|
@@ -41,7 +41,6 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
|
||||
|
||||
$this->template_path = $this->test_path . '/templates';
|
||||
$this->parent_template_path = $this->test_path . '/parent_templates';
|
||||
$container = new phpbb_mock_container_builder();
|
||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||
$context = new \phpbb\template\context();
|
||||
$loader = new \phpbb\template\twig\loader('');
|
||||
@@ -52,7 +51,7 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
new \phpbb\event\dispatcher($container),
|
||||
new \phpbb\event\dispatcher(),
|
||||
array(
|
||||
'cache' => false,
|
||||
'debug' => false,
|
||||
|
@@ -93,7 +93,6 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||
|
||||
$this->template_path = $this->test_path . '/templates';
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||
$context = new \phpbb\template\context();
|
||||
$loader = new \phpbb\template\twig\loader('');
|
||||
@@ -104,7 +103,7 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
new \phpbb\event\dispatcher($container),
|
||||
new \phpbb\event\dispatcher(),
|
||||
array(
|
||||
'cache' => false,
|
||||
'debug' => false,
|
||||
|
@@ -36,7 +36,6 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
|
||||
$this->template_path = $this->test_path . '/templates';
|
||||
$this->parent_template_path = $this->test_path . '/parent_templates';
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||
$context = new \phpbb\template\context();
|
||||
$loader = new \phpbb\template\twig\loader('');
|
||||
@@ -47,7 +46,7 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
new \phpbb\event\dispatcher($container),
|
||||
new \phpbb\event\dispatcher(),
|
||||
array(
|
||||
'cache' => false,
|
||||
'debug' => false,
|
||||
|
Reference in New Issue
Block a user