mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
修改template类单元测试文件
This commit is contained in:
@@ -326,7 +326,7 @@ EOF;
|
||||
];
|
||||
$data = ['name' => 'value'];
|
||||
$template->layout('layout')->fetch('display', $data, $config);
|
||||
$this->expectOutputString('<div>value</div>');
|
||||
$this->expectOutputString('value');
|
||||
}
|
||||
|
||||
public function testDisplay()
|
||||
@@ -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__'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user