/** * Clear all caches. * If hard, cache will be cleared in a more straightforward approach and the according backend hooks are not executed. * * @param boolean $hard * @return void */ public function clearAllCachesCommand($hard = false) { $this->cacheApiService->clearAllCaches($hard); $message = 'All caches have been cleared%s.'; $this->logger->info($message); $this->outputLine($message, $hard ? array(' hard') : array('')); }
/** * @test * @covers ::clearAllCaches */ public function clearAllCachesClearAllCaches() { $this->dataHandlerMock->expects($this->once())->method('clear_cacheCmd')->with('all'); $this->subject->clearAllCaches(); }