diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-02 12:59:23 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-02 12:59:23 -0500 |
| commit | 2507c648fe92de5363bd443839d1bb52f55795b4 (patch) | |
| tree | 60076fe4fefcc6d0411ef97716799f2f8e41896f /tests/template/template_test.php | |
| parent | 6bbe92a8d020f1fcfa8de0da50714acf88837295 (diff) | |
| download | forums-2507c648fe92de5363bd443839d1bb52f55795b4.tar forums-2507c648fe92de5363bd443839d1bb52f55795b4.tar.gz forums-2507c648fe92de5363bd443839d1bb52f55795b4.tar.bz2 forums-2507c648fe92de5363bd443839d1bb52f55795b4.tar.xz forums-2507c648fe92de5363bd443839d1bb52f55795b4.zip | |
[feature/twig] template->cachepath is now private, missed checking tests
PHPBB3-11598
Diffstat (limited to 'tests/template/template_test.php')
| -rw-r--r-- | tests/template/template_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 26cfb3a8e4..1b3dda9b2a 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -371,9 +371,11 @@ class phpbb_template_template_test extends phpbb_template_template_test_case public function test_php() { + global $phpbb_root_path; + $template_text = '<!-- PHP -->echo "test";<!-- ENDPHP -->'; - $cache_dir = dirname($this->template->cachepath) . '/'; + $cache_dir = dirname($phpbb_root_path . 'cache') . '/'; $fp = fopen($cache_dir . 'php.html', 'w'); fputs($fp, $template_text); fclose($fp); |
