mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
update scope tests for {config_load}
This commit is contained in:
@@ -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
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user