Exemplo n.º 1
0
 public function removeBackupAction()
 {
     if (!$this->isDisabledUpgrade()) {
         FileUtil::emptyDir(SystemUtil::getBackUpPath());
     }
     return $this->createJsonResponse(true);
 }
Exemplo n.º 2
0
 public function testGetBackUpPath()
 {
     $testBackUpPath = SystemUtil::getBackUpPath();
     $backUpPath = SystemUtil::getSystemRootPath() . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'backup';
     $this->assertEquals($backUpPath, $testBackUpPath);
 }