/**
  * @test
  * @author Robert Lemke <*****@*****.**>
  * @author Karsten Dambekalns <*****@*****.**>
  * @author Ingo Renner <*****@*****.**>
  */
 public function createPassesBackendOptionsToTheCreatedBackend()
 {
     $someValue = microtime();
     $backendOptions = array('someOption' => $someValue);
     $cache = $this->getMock('t3lib_cache_frontend_VariableFrontend', array(), array(), '', FALSE);
     $mockCacheManager = $this->getMock('t3lib_cache_Manager', array('registerCache'), array(), '', FALSE);
     $factory = new t3lib_cache_Factory();
     $factory->setCacheManager($mockCacheManager);
     $cache = $factory->create('TYPO3_Cache_FactoryTest_Cache', 't3lib_cache_frontend_VariableFrontend', 't3lib_cache_backend_MockBackend', $backendOptions);
     $this->assertEquals($someValue, $cache->getBackend()->getSomeOption(), 'create() did not pass the backend options to the backend.');
 }
 /**
  * Injects the cache factory
  *
  * @param	t3lib_cache_Factory	The cache factory
  * @return void
  * @author Robert Lemke <*****@*****.**>
  * @author Ingo Renner <*****@*****.**>
  * @internal
  */
 public function setCacheFactory(t3lib_cache_Factory $cacheFactory)
 {
     $this->cacheFactory = $cacheFactory;
     $this->cacheFactory->setCacheManager($this);
 }