summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-08-18 01:17:28 +0200
committerRobin Appelman <icewind@owncloud.com>2012-08-18 22:42:35 +0200
commit596246989217143d78e8987fa7b2c4154806a644 (patch)
tree03c4902cea3a35d00c703f422aead3c161795c63 /tests
parentd54390b1a0e7b36ef9b806e7b61f5ff9f85d190d (diff)
downloadnextcloud-server-596246989217143d78e8987fa7b2c4154806a644.tar.gz
nextcloud-server-596246989217143d78e8987fa7b2c4154806a644.zip
add OC_Archive::addRecursive
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/archive.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/archive.php b/tests/lib/archive.php
index 1779127c932..1711be58e01 100644
--- a/tests/lib/archive.php
+++ b/tests/lib/archive.php
@@ -130,4 +130,12 @@ abstract class Test_Archive extends UnitTestCase {
$this->instance->remove('target.txt');
$this->assertFalse($this->instance->fileExists('target.txt'));
}
+ public function testRecursive(){
+ $dir=OC::$SERVERROOT.'/apps/files_archive/tests/data';
+ $this->instance=$this->getNew();
+ $this->instance->addRecursive('/dir',$dir);
+ $this->assertTrue($this->instance->fileExists('/dir/lorem.txt'));
+ $this->assertTrue($this->instance->fileExists('/dir/data.zip'));
+ $this->assertTrue($this->instance->fileExists('/dir/data.tar.gz'));
+ }
}