单元测试修改

This commit is contained in:
thinkphp
2016-07-16 23:33:28 +08:00
parent 5cfe101f03
commit 199084e027

View File

@@ -407,7 +407,7 @@ EOF;
public function testIsCache()
{
$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;
$this->assertTrue(!$template->isCache('__CACHE_ID__'));
}