mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue