mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
单元测试修改
This commit is contained in:
@@ -407,7 +407,7 @@ EOF;
|
|||||||
public function testIsCache()
|
public function testIsCache()
|
||||||
{
|
{
|
||||||
$template = new Template(['cache_id' => '__CACHE_ID__', 'display_cache' => true]);
|
$template = new Template(['cache_id' => '__CACHE_ID__', 'display_cache' => true]);
|
||||||
$this->assertTrue(!$template->isCache('__CACHE_ID__'));
|
$this->assertTrue($template->isCache('__CACHE_ID__'));
|
||||||
$template->display_cache = false;
|
$template->display_cache = false;
|
||||||
$this->assertTrue(!$template->isCache('__CACHE_ID__'));
|
$this->assertTrue(!$template->isCache('__CACHE_ID__'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user