Skip to content

Commit 139bb0e

Browse files
committed
Fix unrelated tests (again)
1 parent d64c938 commit 139bb0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/template/status_icon_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class status_icon_test extends \phpbb_template_template_test_case
1616
{
1717
protected $test_path = __DIR__;
1818

19-
protected function setup_engine(array $new_config = array())
19+
protected function setup_engine(array $new_config = array(), string $template_path = '')
2020
{
2121
global $phpbb_root_path, $phpEx;
2222

@@ -39,7 +39,7 @@ protected function setup_engine(array $new_config = array())
3939
$phpEx
4040
);
4141

42-
$this->template_path = $this->test_path . '/templates';
42+
$this->template_path = $template_path ?: $this->test_path . '/templates';
4343

4444
$cache_path = $phpbb_root_path . 'cache/twig';
4545
$context = new \phpbb\template\context();

0 commit comments

Comments
 (0)