Update security test

This commit is contained in:
uwetews
2016-07-12 02:28:56 +02:00
parent 688151e06f
commit 93bc56e14f

View File

@@ -28,6 +28,18 @@ class SecurityTest extends PHPUnit_Smarty
$this->cleanDir($this->smarty->getCompileDir());
}
/**
* test that security is loaded
*/
public function testSecurityReenable()
{
$this->smarty->disableSecurity();
$this->smarty->enableSecurity('Security');
$this->smarty->fetch('helloworld.tpl');
$this->smarty->disableSecurity();
$this->smarty->enableSecurity('Security');
$this->smarty->fetch('helloworld.tpl');
}
/**
* test that security is loaded
*/
@@ -383,3 +395,7 @@ class mysecuritystaticclass
return $i * $i;
}
}
class Security extends Smarty_Security
{
}