1
0
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:
Marc Alexander 2016-06-12 14:09:00 +02:00
parent a4f48205fb
commit 1dc14c0f38
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

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