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