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/includephp_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/includephp_test.php')
-rw-r--r-- | tests/template/includephp_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/template/includephp_test.php b/tests/template/includephp_test.php index edf1e40bb8..a3dc9bd5c5 100644 --- a/tests/template/includephp_test.php +++ b/tests/template/includephp_test.php @@ -33,11 +33,13 @@ class phpbb_template_includephp_test extends phpbb_template_template_test_case public function test_includephp_absolute() { + global $phpbb_root_path; + $path_to_php = str_replace('\\', '/', dirname(__FILE__)) . '/templates/_dummy_include.php.inc'; $this->assertTrue(phpbb_is_absolute($path_to_php)); $template_text = "Path is absolute.\n<!-- INCLUDEPHP $path_to_php -->"; - $cache_dir = dirname($this->template->cachepath) . '/'; + $cache_dir = dirname($phpbb_root_path . 'cache') . '/'; $fp = fopen($cache_dir . 'includephp_absolute.html', 'w'); fputs($fp, $template_text); fclose($fp); |