mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12775] Fix unit tests
PHPBB3-12775
This commit is contained in:
parent
afffec8184
commit
926e47e5a1
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ namespace
|
||||||
$this->config_php = new \phpbb\config_php($this->phpbb_root_path . 'fixtures/', 'php');
|
$this->config_php = new \phpbb\config_php($this->phpbb_root_path . 'fixtures/', 'php');
|
||||||
$this->factory = new phpbb_mock_container_factory($this->config_php, $this->phpbb_root_path . 'fixtures/', 'php');
|
$this->factory = new phpbb_mock_container_factory($this->config_php, $this->phpbb_root_path . 'fixtures/', 'php');
|
||||||
|
|
||||||
$this->filename = $this->phpbb_root_path . '../tmp/cache/container.php';
|
$this->filename = $this->phpbb_root_path . '../tmp/container.php';
|
||||||
if (is_file($this->filename))
|
if (is_file($this->filename))
|
||||||
{
|
{
|
||||||
unlink($this->filename);
|
unlink($this->filename);
|
||||||
|
|
|
@ -15,6 +15,6 @@ class phpbb_mock_container_factory extends \phpbb\di\container_factory
|
||||||
{
|
{
|
||||||
protected function get_container_filename()
|
protected function get_container_filename()
|
||||||
{
|
{
|
||||||
return $this->phpbb_root_path . '../../tmp/cache/container.' . $this->php_ext;
|
return $this->phpbb_root_path . '../../tmp/container.' . $this->php_ext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue