mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
add test for getConfigVariable()
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user