diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-06-24 23:29:22 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-06-24 23:29:22 -0500 |
| commit | fe61527c5245d3d627e51c96b7b482c526b7dd28 (patch) | |
| tree | 0f4e9d8dad439cc896328a10dfe05850553d0ce6 | |
| parent | dabc0edea2ebf9a15aad944935628fa558a8eeec (diff) | |
| download | forums-fe61527c5245d3d627e51c96b7b482c526b7dd28.tar forums-fe61527c5245d3d627e51c96b7b482c526b7dd28.tar.gz forums-fe61527c5245d3d627e51c96b7b482c526b7dd28.tar.bz2 forums-fe61527c5245d3d627e51c96b7b482c526b7dd28.tar.xz forums-fe61527c5245d3d627e51c96b7b482c526b7dd28.zip | |
[feature/twig] Remove duplicate test calls
PHPBB3-11598
| -rw-r--r-- | tests/template/template_test.php | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index a3c0b69123..a4748eb0b3 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -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) { - $cache_file = $this->template->cachepath . str_replace('/', '.', $file) . '.php'; - - $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); + $this->run_template($file, $vars, $block_vars, $destroy, $expected); } /** @@ -423,11 +414,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case { $this->setup_engine(array('tpl_allow_php' => true)); - $cache_file = $this->template->cachepath . 'php.html.php'; - - $this->assertFileNotExists($cache_file); - - $this->run_template('php.html', array(), array(), array(), 'test', $cache_file); + $this->run_template('php.html', array(), array(), array(), 'test'); } public function alter_block_array_data() |
