/** * clear profiles cache * @param Request $request * @return RedirectResponse */ public function profilesAction(Request $request) { $this->cacheManager->clearProfiles(); return $this->flashResponse($request, 'profilers', true); }
/** * test profile deletion * @covers CacheManager::clearProfiles */ public function testClearProfiles() { $this->assertTrue(is_dir($this->cacheDir . DIRECTORY_SEPARATOR . 'profiler')); $this->cache_manager->clearProfiles(); $this->assertFalse(is_dir($this->cacheDir . DIRECTORY_SEPARATOR . 'profiler')); }