public function initializeObjectDoesNotFlushCachesInProductionContext() { $this->mockApplicationContext->expects($this->atLeastOnce())->method('isDevelopment')->will($this->returnValue(false)); $this->mockRouteCache->expects($this->never())->method('get'); $this->mockRouteCache->expects($this->never())->method('flush'); $this->mockResolveCache->expects($this->never())->method('flush'); $this->routerCachingService->_call('initializeObject'); }