Example #1
0
 /**
  * @group ZF-10049
  */
 public function testSetDefaultMetadataCacheFromCacheManager()
 {
     $configCache = array('database' => array('frontend' => array('name' => 'Core', 'options' => array('lifetime' => 120, 'automatic_serialization' => true)), 'backend' => array('name' => 'Black Hole')));
     $this->bootstrap->registerPluginResource('cachemanager', $configCache);
     $options = $this->_dbOptions;
     $options['defaultMetadataCache'] = 'database';
     $resource = new MultidbResource($options);
     $resource->setBootstrap($this->bootstrap);
     $resource->init();
     $this->assertType('Zend\\Cache\\Frontend\\Core', DBTable::getDefaultMetadataCache());
 }