mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/twig] Remove duplicate test calls
PHPBB3-11598
This commit is contained in:
parent
dabc0edea2
commit
fe61527c52
1 changed files with 2 additions and 15 deletions
|
@ -340,16 +340,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
*/
|
*/
|
||||||
public function test_template($file, array $vars, array $block_vars, array $destroy, $expected)
|
public function test_template($file, array $vars, array $block_vars, array $destroy, $expected)
|
||||||
{
|
{
|
||||||
$cache_file = $this->template->cachepath . str_replace('/', '.', $file) . '.php';
|
$this->run_template($file, $vars, $block_vars, $destroy, $expected);
|
||||||
|
|
||||||
$this->assertFileNotExists($cache_file);
|
|
||||||
|
|
||||||
$this->run_template($file, $vars, $block_vars, $destroy, $expected, $cache_file);
|
|
||||||
|
|
||||||
// Reset the engine state
|
|
||||||
$this->setup_engine();
|
|
||||||
|
|
||||||
$this->run_template($file, $vars, $block_vars, $destroy, $expected, $cache_file);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -423,11 +414,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
{
|
{
|
||||||
$this->setup_engine(array('tpl_allow_php' => true));
|
$this->setup_engine(array('tpl_allow_php' => true));
|
||||||
|
|
||||||
$cache_file = $this->template->cachepath . 'php.html.php';
|
$this->run_template('php.html', array(), array(), array(), 'test');
|
||||||
|
|
||||||
$this->assertFileNotExists($cache_file);
|
|
||||||
|
|
||||||
$this->run_template('php.html', array(), array(), array(), 'test', $cache_file);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function alter_block_array_data()
|
public function alter_block_array_data()
|
||||||
|
|
Loading…
Add table
Reference in a new issue