mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
[ticket/14670] Remove usage of prototype scope in tests
In this specific case, the mock container builder is used which does not even support setting the scope. PHPBB3-14670
This commit is contained in:
parent
a4f48205fb
commit
1dc14c0f38
@ -83,13 +83,13 @@ class phpbb_fileupload_test extends phpbb_test_case
|
||||
$this->php_ini,
|
||||
$plupload,
|
||||
$this->request
|
||||
), phpbb_mock_container_builder::SCOPE_PROTOTYPE);
|
||||
));
|
||||
$this->container->set('files.types.local', new \phpbb\files\types\local(
|
||||
$this->factory,
|
||||
$this->language,
|
||||
$this->php_ini,
|
||||
$this->request
|
||||
), phpbb_mock_container_builder::SCOPE_PROTOTYPE);
|
||||
));
|
||||
|
||||
$this->path = __DIR__ . '/fixture/';
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user