/** * clear translations cache * @param Request $request * @return RedirectResponse */ public function translationsAction(Request $request) { $this->cacheManager->clearTranslations(); return $this->flashResponse($request, 'translations', true); }
/** * test translations deletion * @covers CacheManager::clearTranslations */ public function testClearTranslations() { $this->assertTrue(is_dir($this->cacheDir . DIRECTORY_SEPARATOR . 'translations')); $this->cache_manager->clearTranslations(); $this->assertFalse(is_dir($this->cacheDir . DIRECTORY_SEPARATOR . 'translations')); }