summaryrefslogtreecommitdiffstats
path: root/apps/files_archive
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-03 01:37:00 +0100
committerRobin Appelman <icewind@owncloud.com>2012-03-03 01:37:00 +0100
commit23b64cd9cee55b6b17fa8dec44d1cb8d06e88af8 (patch)
treef58185e410606e4b893ee8e56b60ca58e9983caf /apps/files_archive
parent042878a5a90d95ed49fcbdba4ea710ea545b61cc (diff)
downloadnextcloud-server-23b64cd9cee55b6b17fa8dec44d1cb8d06e88af8.tar.gz
nextcloud-server-23b64cd9cee55b6b17fa8dec44d1cb8d06e88af8.zip
remove the archive after a testcase is done
Diffstat (limited to 'apps/files_archive')
-rw-r--r--apps/files_archive/tests/storage.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/files_archive/tests/storage.php b/apps/files_archive/tests/storage.php
index 1dfaca2ce5c..4d0a83356bd 100644
--- a/apps/files_archive/tests/storage.php
+++ b/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);
}
}