public function testGettingPageCacheAlsoCreatesTagCache() { $manager = new Zend_Cache_Manager(); $tagCacheConfig = $manager->getCacheTemplate('tagCache'); $tagCacheConfig['backend']['options']['cache_dir'] = $this->getTmpDir(); $manager->setCacheTemplate('tagCache', $tagCacheConfig); $tagCache = $manager->getCache('page')->getBackend()->getOption('tag_cache'); $this->assertTrue($tagCache instanceof Zend_Cache_Core); }
/** * @group GH-189 */ public function testSetsOptionsWithCustomFrontendAndBackendNamingAndAutoload() { $manager = new Zend_Cache_Manager(); $manager->setTemplateOptions('page', array('frontend' => array('customFrontendNaming' => true), 'backend' => array('customBackendNaming' => true), 'frontendBackendAutoload' => true)); $config = $manager->getCacheTemplate('page'); $this->assertTrue($config['frontend']['customFrontendNaming']); $this->assertTrue($config['backend']['customBackendNaming']); $this->assertTrue($config['frontendBackendAutoload']); }