Browse Source

remove the archive after a testcase is done

remotes/origin/stable4
Robin Appelman 14 years ago
parent
commit
23b64cd9ce
  1. 10
      apps/files_archive/tests/storage.php

10
apps/files_archive/tests/storage.php

@ -10,9 +10,15 @@ class Test_Filestorage_Archive_Zip extends Test_FileStorage {
/**
* @var string tmpDir
*/
private $tmpFile;
public function setUp(){
$tmpFile=OC_Helper::tmpFile('.zip');
$this->instance=new OC_Filestorage_Archive(array('archive'=>$tmpFile));
$this->tmpFile=OC_Helper::tmpFile('.zip');
$this->instance=new OC_Filestorage_Archive(array('archive'=>$this->tmpFile));
}
public function tearDown(){
unlink($this->tmpFile);
}
}
Loading…
Cancel
Save