mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 01:20:40 +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
b93bdfb1c3
commit
74abce31bc
@ -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