Bug #38713 ยป MemcachedBackendTest.php.diff

Path with the fix for the current issue - Dominique Feyer, 2012-07-06 14:48

View differences:

Tests/Unit/Cache/Backend/MemcachedBackendTest.php
226 226

  
227 227
		$thisCache = $this->getMock('TYPO3\FLOW3\Cache\Frontend\AbstractFrontend', array(), array(), '', FALSE);
228 228
		$thisCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('thisCache'));
229
		$thisBackend = new \TYPO3\FLOW3\Cache\Backend\MemcachedBackend('Testing', $backendOptions);
229
		$thisBackend = new \TYPO3\FLOW3\Cache\Backend\MemcachedBackend(new ApplicationContext('Testing'), $backendOptions);
230 230
		$thisBackend->injectEnvironment($this->mockEnvironment);
231 231
		$thisBackend->setCache($thisCache);
232 232
		$thisBackend->initializeObject();
233 233

  
234 234
		$thatCache = $this->getMock('TYPO3\FLOW3\Cache\Frontend\AbstractFrontend', array(), array(), '', FALSE);
235 235
		$thatCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('thatCache'));
236
		$thatBackend = new \TYPO3\FLOW3\Cache\Backend\MemcachedBackend('Testing', $backendOptions);
236
		$thatBackend = new \TYPO3\FLOW3\Cache\Backend\MemcachedBackend(new ApplicationContext('Testing'), $backendOptions);
237 237
		$thatBackend->injectEnvironment($this->mockEnvironment);
238 238
		$thatBackend->setCache($thatCache);
239 239
		$thatBackend->initializeObject();
    (1-1/1)