/** * @test */ public function flushSystemCachesByChangedFilesFlushesI18nCacheIfATranslationFileHasBeenModified() { $this->registerCache('Flow_Object_Classes'); $this->registerCache('Flow_Object_Configuration'); $i18nCache = $this->registerCache('Flow_I18n_XmlModelCache'); $i18nCache->expects($this->once())->method('flush'); $this->cacheManager->flushSystemCachesByChangedFiles('Flow_TranslationFiles', array('Some/Other/File' => ChangeDetectionStrategyInterface::STATUS_CHANGED, 'Some/Package/Resources/Private/Translations/en/Foo.xlf' => ChangeDetectionStrategyInterface::STATUS_CHANGED)); }