From 12b75123113231ecbad715801a4f5bd44b07c49f Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Tue, 27 Mar 2018 02:03:37 +0200 Subject: [PATCH] update new plugin handling --- .../CompileFunctionPluginTest.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/tests/UnitTests/TemplateSource/TagTests/FunctionPlugin/CompileFunctionPluginTest.php b/tests/UnitTests/TemplateSource/TagTests/FunctionPlugin/CompileFunctionPluginTest.php index 37c947e2..4622e578 100644 --- a/tests/UnitTests/TemplateSource/TagTests/FunctionPlugin/CompileFunctionPluginTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/FunctionPlugin/CompileFunctionPluginTest.php @@ -26,27 +26,7 @@ class CompileFunctionPluginTest extends PHPUnit_Smarty $this->cleanDirs(); } - /** - * test function plugin nocache tag - */ - public function testFunctionPluginFromTemplateFileNocache1() - { - $this->smarty->assign('foo',5); - $this->smarty->setCaching(true); - $tpl = $this->smarty->createTemplate('functionplugintestnocache.tpl', $this->smarty); - $this->assertEquals("5", $this->smarty->fetch($tpl)); - $this->assertContains("%%*/smarty; if (!is_callable(\\'smarty_function_getvar\\'))", file_get_contents($tpl->compiled->filepath)); - } - /** - * test function plugin tag in template file - */ - public function testFunctionPluginFromTemplateFile() - { - $tpl = $this->smarty->createTemplate('functionplugintest.tpl', $this->smarty); - $this->assertEquals("10", $this->smarty->fetch($tpl)); - $this->assertContains("if (!is_callable('smarty_function_counter'))", file_get_contents($tpl->compiled->filepath)); - } /** * test function plugin tag in compiled template file */