public function removeTempAction() { if (!$this->isDisabledUpgrade()) { FileUtil::emptyDir(SystemUtil::getDownloadPath()); } FileUtil::emptyDir(SystemUtil::getUploadTmpPath()); return $this->createJsonResponse(true); }
public function testGetDownloadPath() { $testDownloadPath = SystemUtil::getDownloadPath(); $downloadPath = SystemUtil::getSystemRootPath() . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'upgrade'; $this->assertEquals($downloadPath, $testDownloadPath); }