update scope tests for {config_load}

This commit is contained in:
uwetews
2016-01-02 02:37:14 +01:00
parent 978d7c88c5
commit c26d0ed365

View File

@@ -78,20 +78,6 @@ class CompileConfigLoadTest extends PHPUnit_Smarty
$this->assertEquals("Welcome to Smarty!", $this->smarty->getConfigVars('title')); $this->assertEquals("Welcome to Smarty!", $this->smarty->getConfigVars('title'));
} }
/**
* test config varibales loading global
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testConfigVariableGlobal()
{
$this->assertEquals("Welcome to Smarty!", $this->smarty->fetch('eval:{config_load file=\'test.conf\' scope=\'global\'}{#title#}'));
// global is parent must not be empty
$this->assertEquals("Welcome to Smarty!", $this->smarty->getConfigVars('title'));
}
/** /**
* test config varibales loading all sections from template * test config varibales loading all sections from template
* *