public function flushSystemCachesByChangedFilesWithChangedClassFileRemovesCacheEntryFromObjectClassesCache() { $objectClassCache = $this->registerCache('Flow_Object_Classes'); $objectConfigurationCache = $this->registerCache('Flow_Object_Configuration'); $this->registerCache('Flow_Reflection_Status'); $objectClassCache->expects($this->once())->method('remove')->with('Neos_Flow_Cache_CacheManager'); $objectConfigurationCache->expects($this->once())->method('remove')->with('allCompiledCodeUpToDate'); $this->cacheManager->flushSystemCachesByChangedFiles('Flow_ClassFiles', [FLOW_PATH_PACKAGES . 'Framework/Neos.Flow/Classes/Cache/CacheManager.php' => ChangeDetectionStrategyInterface::STATUS_CHANGED]); }