public function removeCacheAction() { FileUtil::emptyDir(SystemUtil::getCachePath()); return $this->createJsonResponse(true); }
public function testGetCachePath() { $testCachePath = SystemUtil::getCachePath(); $cachePath = SystemUtil::getSystemRootPath() . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'cache'; $this->assertEquals($cachePath, $testCachePath); }