diff --git a/tests/UnitTests/TemplateSource/TagTests/Insert/CompileInsertTest.php b/tests/UnitTests/TemplateSource/TagTests/Insert/CompileInsertTest.php index 536b691e..61e8835c 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Insert/CompileInsertTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Insert/CompileInsertTest.php @@ -202,7 +202,8 @@ class CompileInsertTest extends PHPUnit_Smarty public function testInsertPluginCaching3_1() { $this->smarty->caching = true; - $this->assertContains(time().'Inner template', $this->smarty->fetch('insertplugintest2.tpl')); + $this->smarty->assign('insert',$t=time()); + $this->assertContains($t.'Inner template', $this->smarty->fetch('insertplugintest2.tpl')); } /** @@ -214,7 +215,8 @@ class CompileInsertTest extends PHPUnit_Smarty { sleep(2); $this->smarty->caching = true; - $this->assertContains(time().'Inner template', $this->smarty->fetch('insertplugintest2.tpl')); + $this->smarty->assign('insert',$t=time()); + $this->assertContains($t.'Inner template', $this->smarty->fetch('insertplugintest2.tpl')); } diff --git a/tests/UnitTests/TemplateSource/TagTests/Insert/PHPunitplugins/insert.test2.php b/tests/UnitTests/TemplateSource/TagTests/Insert/PHPunitplugins/insert.test2.php index 597ffd1e..bfc35e12 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Insert/PHPunitplugins/insert.test2.php +++ b/tests/UnitTests/TemplateSource/TagTests/Insert/PHPunitplugins/insert.test2.php @@ -1,5 +1,6 @@ tpl_vars[$params['var']]->value; } diff --git a/tests/UnitTests/TemplateSource/TagTests/Insert/templates/insertplugintest2.tpl b/tests/UnitTests/TemplateSource/TagTests/Insert/templates/insertplugintest2.tpl index 0ad560d1..a1834ab0 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Insert/templates/insertplugintest2.tpl +++ b/tests/UnitTests/TemplateSource/TagTests/Insert/templates/insertplugintest2.tpl @@ -1,2 +1,2 @@ -{insert name='test2'} +{insert name='test2' var='insert'} {include 'inner.tpl'} \ No newline at end of file