add test for getConfigVariable()

This commit is contained in:
uwetews
2016-09-08 22:19:07 +02:00
parent be86d1eb6d
commit 2e9ee3b2a0

View File

@@ -312,6 +312,19 @@ class ConfigVarTest extends PHPUnit_Smarty
$this->assertEquals("Welcome to Smarty!", $tpl->getConfigVars('title'));
}
/**
* test getConfigVariable on template object
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigGetSingleConfigVarTemplate2()
{
$tpl = $this->smarty->createTemplate('text.tpl');
$tpl->configLoad('test.conf');
$this->assertEquals("Welcome to Smarty!", $tpl->getConfigVariable('title'));
}
/**
* test getConfigVars return all variables on template object
*