1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/16955] Update tests to support small changes to docblocks/types

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-26 14:57:11 +01:00
parent 1c02b1a7b5
commit d3d53cda0f
4 changed files with 11 additions and 21 deletions

View File

@@ -120,21 +120,11 @@ class phpbb_template_template_test_case extends phpbb_test_case
// Test the engine can be used
$this->setup_engine();
$this->template->clear_cache();
global $phpbb_filesystem;
$phpbb_filesystem = new \phpbb\filesystem\filesystem();
}
protected function tearDown(): void
{
if ($this->template)
{
$this->template->clear_cache();
}
}
protected function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $lang_vars = array())
{
$this->template->set_filenames(array('test' => $file));