mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10933] Specify empty template path for absolute includephp test.
This was probably necessary all along, and the test happened to work because state was not correctly reset between test runs and a previous test set an empty template path. PHPBB3-10933
This commit is contained in:
parent
766353fe5c
commit
c3fb0f359c
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class phpbb_template_includephp_test extends phpbb_template_template_test_case
|
||||||
|
|
||||||
$this->setup_engine(array('tpl_allow_php' => true));
|
$this->setup_engine(array('tpl_allow_php' => true));
|
||||||
|
|
||||||
$this->style->set_custom_style('tests', $cache_dir);
|
$this->style->set_custom_style('tests', $cache_dir, '');
|
||||||
$cache_file = $this->template->cachepath . 'includephp_absolute.html.php';
|
$cache_file = $this->template->cachepath . 'includephp_absolute.html.php';
|
||||||
|
|
||||||
$this->run_template('includephp_absolute.html', array(), array(), array(), "Path is absolute.\ntesting included php", $cache_file);
|
$this->run_template('includephp_absolute.html', array(), array(), array(), "Path is absolute.\ntesting included php", $cache_file);
|
||||||
|
|
Loading…
Add table
Reference in a new issue