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