public function testIsCache() { $template = new Template(['cache_id' => '__CACHE_ID__', 'display_cache' => true]); $this->assertTrue($template->isCache('__CACHE_ID__')); $template->display_cache = false; $this->assertTrue(!$template->isCache('__CACHE_ID__')); }