Test simplw plugin nocache

This commit is contained in:
Uwe Tews
2015-06-17 20:59:56 +02:00
parent 609ae0d708
commit c1d6ae68f4
2 changed files with 20 additions and 1 deletions

View File

@@ -23,6 +23,25 @@ class CompileFunctionPluginTest extends PHPUnit_Smarty
$this->cleanDirs();
}
/**
* test function plugin nocache tag
* @runInSeparateProcess
*/
public function testFunctionPluginFromTemplateFileNocache1()
{
$this->smarty->setCaching(true);
$this->assertEquals("1", $this->smarty->fetch('functionplugintestnocache.tpl'));
}
/**
* test function plugin tag in template file
* @runInSeparateProcess
*/
public function testFunctionPluginFromTemplateFileNocache2()
{
$this->smarty->setCaching(true);
$this->assertEquals("1", $this->smarty->fetch('functionplugintestnocache.tpl'));
}
/**
* test function plugin tag in template file
*/
@@ -31,7 +50,6 @@ class CompileFunctionPluginTest extends PHPUnit_Smarty
$tpl = $this->smarty->createTemplate('functionplugintest.tpl', $this->smarty);
$this->assertEquals("10", $this->smarty->fetch($tpl));
}
/**
* test function plugin tag in compiled template file
*/