|
|
@@ -58,20 +58,20 @@ class Zend_Cache_ManagerTest extends PHPUnit_Framework_TestCase
|
|
|
public function testLazyLoadsDefaultPageCache()
|
|
|
{
|
|
|
$manager = new Zend_Cache_Manager;
|
|
|
- $manager->setTemplateOptions('tagCache',array(
|
|
|
+ $manager->setTemplateOptions('pagetag',array(
|
|
|
'backend' => array(
|
|
|
'options' => array(
|
|
|
'cache_dir' => $this->_cache_dir
|
|
|
)
|
|
|
)
|
|
|
));
|
|
|
- $this->assertTrue($manager->getCache('page') instanceof Zend_Cache_Frontend_Output);
|
|
|
+ $this->assertTrue($manager->getCache('page') instanceof Zend_Cache_Frontend_Capture);
|
|
|
}
|
|
|
|
|
|
public function testCanOverrideCacheFrontendNameConfiguration()
|
|
|
{
|
|
|
$manager = new Zend_Cache_Manager;
|
|
|
- $manager->setTemplateOptions('tagCache',array(
|
|
|
+ $manager->setTemplateOptions('pagetag',array(
|
|
|
'backend' => array(
|
|
|
'options' => array(
|
|
|
'cache_dir' => $this->_cache_dir
|
|
|
@@ -96,15 +96,15 @@ class Zend_Cache_ManagerTest extends PHPUnit_Framework_TestCase
|
|
|
)
|
|
|
)
|
|
|
));
|
|
|
- $manager->setTemplateOptions('tagCache', $config);
|
|
|
- $options = $manager->getCacheTemplate('tagCache');
|
|
|
+ $manager->setTemplateOptions('pagetag', $config);
|
|
|
+ $options = $manager->getCacheTemplate('pagetag');
|
|
|
$this->assertEquals($this->_cache_dir, $options['backend']['options']['cache_dir']);
|
|
|
}
|
|
|
|
|
|
public function testCanOverrideCacheBackendendNameConfiguration()
|
|
|
{
|
|
|
$manager = new Zend_Cache_Manager;
|
|
|
- $manager->setTemplateOptions('tagCache',array(
|
|
|
+ $manager->setTemplateOptions('pagetag',array(
|
|
|
'backend' => array(
|
|
|
'options' => array(
|
|
|
'cache_dir' => $this->_cache_dir
|
|
|
@@ -218,7 +218,7 @@ class Zend_Cache_ManagerTest extends PHPUnit_Framework_TestCase
|
|
|
$manager = new Zend_Cache_Manager;
|
|
|
$tagCacheConfig = $manager->getCacheTemplate('tagCache');
|
|
|
$tagCacheConfig['backend']['options']['cache_dir'] = $this->getTmpDir();
|
|
|
- $manager->setCacheTemplate('tagCache', $tagCacheConfig);
|
|
|
+ $manager->setCacheTemplate('pagetag', $tagCacheConfig);
|
|
|
$tagCache = $manager->getCache('page')->getBackend()->getOption('tag_cache');
|
|
|
$this->assertTrue($tagCache instanceof Zend_Cache_Core);
|
|
|
}
|