mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02: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:
@@ -83,13 +83,13 @@ class phpbb_fileupload_test extends phpbb_test_case
|
|||||||
$this->php_ini,
|
$this->php_ini,
|
||||||
$plupload,
|
$plupload,
|
||||||
$this->request
|
$this->request
|
||||||
), phpbb_mock_container_builder::SCOPE_PROTOTYPE);
|
));
|
||||||
$this->container->set('files.types.local', new \phpbb\files\types\local(
|
$this->container->set('files.types.local', new \phpbb\files\types\local(
|
||||||
$this->factory,
|
$this->factory,
|
||||||
$this->language,
|
$this->language,
|
||||||
$this->php_ini,
|
$this->php_ini,
|
||||||
$this->request
|
$this->request
|
||||||
), phpbb_mock_container_builder::SCOPE_PROTOTYPE);
|
));
|
||||||
|
|
||||||
$this->path = __DIR__ . '/fixture/';
|
$this->path = __DIR__ . '/fixture/';
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
|
Reference in New Issue
Block a user