From 2e9ee3b2a0f37f706140b4f5b008343cb2b2c478 Mon Sep 17 00:00:00 2001 From: uwetews Date: Thu, 8 Sep 2016 22:19:07 +0200 Subject: [PATCH] add test for getConfigVariable() --- .../ConfigFileTests/file/ConfigVarTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php index f3261c67..8a23ba3d 100644 --- a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php +++ b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php @@ -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 *