[ticket/16705] Correctly assign phpBB root path in tests

PHPBB3-16705
This commit is contained in:
Marc Alexander 2021-03-02 19:55:02 +01:00
parent 91a5a73dca
commit e4fc9bb0b1
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -79,6 +79,7 @@ class phpbb_attachment_upload_test extends \phpbb_database_test_case
'img_create_thumbnail' => true, 'img_create_thumbnail' => true,
)); ));
$config = $this->config; $config = $this->config;
$this->phpbb_root_path = $phpbb_root_path;
$this->db = $this->new_dbal(); $this->db = $this->new_dbal();
$this->cache = new \phpbb\cache\service(new \phpbb\cache\driver\dummy(), $this->config, $this->db, $phpbb_root_path, $phpEx); $this->cache = new \phpbb\cache\service(new \phpbb\cache\driver\dummy(), $this->config, $this->db, $phpbb_root_path, $phpEx);
$this->request = $this->createMock('\phpbb\request\request'); $this->request = $this->createMock('\phpbb\request\request');