public function testIsCached() { $this->view->loadTemplate('string:{block name="testBlock"}Content{$test}{/block}'); $this->view->setCaching(false); $this->view->render(); $this->assertFalse($this->view->Template()->isCached()); $this->view->loadTemplate('string:{block name="testBlock"}Content{$test}{/block}'); $this->view->setCaching(true); $this->view->render(); $this->assertTrue($this->view->Template()->isCached()); }