public function testGetCacheId() { $this->view->loadTemplate('string:{block name="testBlock"}Content{$test}{/block}'); $this->view->setCacheId("123"); $this->view->addCacheId("456"); $this->assertArrayCount(2, explode('|', $this->view->getCacheId())); }
/** * Test case */ public function testViewAddCacheId() { $view = new Enlight_View_Default($this->engine); $view->loadTemplate('string:'); $view->setCacheId('test'); $this->assertEquals('test', $view->getCacheId()); $view->addCacheId('2'); $this->assertEquals('test|2', $view->getCacheId()); }