summaryrefslogtreecommitdiffstats
path: root/apps/files_archive/tests/storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_archive/tests/storage.php')
-rw-r--r--apps/files_archive/tests/storage.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/apps/files_archive/tests/storage.php b/apps/files_archive/tests/storage.php
index 7ebcce4ac6f..74ddf22870c 100644
--- a/apps/files_archive/tests/storage.php
+++ b/apps/files_archive/tests/storage.php
@@ -22,4 +22,18 @@ class Test_Filestorage_Archive_Zip extends Test_FileStorage {
}
}
-?> \ No newline at end of file
+class Test_Filestorage_Archive_Tar extends Test_FileStorage {
+ /**
+ * @var string tmpDir
+ */
+ private $tmpFile;
+
+ public function setUp(){
+ $this->tmpFile=OCP\Files::tmpFile('.tar.gz');
+ $this->instance=new OC_Filestorage_Archive(array('archive'=>$this->tmpFile));
+ }
+
+ public function tearDown(){
+ unlink($this->tmpFile);
+ }
+}