Example #1
0
 public function testChangePluginManager()
 {
     $manager = new Cache\Storage\PluginManager();
     Cache\StorageFactory::setPluginManager($manager);
     $this->assertSame($manager, Cache\StorageFactory::getPluginManager());
 }
 /**
  * Prepare the storage factory with the adapter and plugins plugin managers.
  *
  * @param ContainerInterface $container
  * @return void
  */
 private function prepareStorageFactory(ContainerInterface $container)
 {
     StorageFactory::setAdapterPluginManager($this->lookupStorageAdapterPluginManager($container));
     StorageFactory::setPluginManager($this->lookupStoragePluginManager($container));
 }