mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Test empty filename and invalid handle
git-svn-id: file:///svn/phpbb/trunk@9119 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
de51ec8a15
commit
d57b4d0b48
1 changed files with 7 additions and 0 deletions
|
@ -268,6 +268,13 @@ class phpbb_template_template_test extends phpbb_test_case
|
||||||
$this->template->set_filenames(array('test' => ''));
|
$this->template->set_filenames(array('test' => ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_invalid_handle()
|
||||||
|
{
|
||||||
|
$this->setExpectedTriggerError(E_USER_ERROR, sprintf("template->_tpl_load(): No file specified for handle test"));
|
||||||
|
$this->display('test');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $cache_file)
|
private function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $cache_file)
|
||||||
{
|
{
|
||||||
$this->template->set_filenames(array('test' => $file));
|
$this->template->set_filenames(array('test' => $file));
|
||||||
|
|
Loading…
Add table
Reference in a new issue