/** * Sets up the redis backend used for testing * * @param array $backendOptions Options for the memcache backend */ protected function setUpBackend(array $backendOptions = array()) { $mockCache = $this->getMock('TYPO3\\Flow\\Cache\\Frontend\\FrontendInterface', array(), array(), '', FALSE); $mockCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('TestCache')); $this->backend = new \TYPO3\Flow\Cache\Backend\RedisBackend(new ApplicationContext('Testing'), $backendOptions); $this->backend->setCache($mockCache); $this->backend->initializeObject(); }