summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-12-03 11:00:49 -0800
committerFrank Karlitschek <frank@owncloud.org>2013-12-03 11:00:49 -0800
commit8fdbb988995099fc2bd79ca5704120873952651b (patch)
tree92921e53cb398a25c02ec5c0a625d95d9fe85d96
parent16eb7c15d26054055f5e8d34fd8333948b6fd8ff (diff)
parent6cf9844e9c4790342053e00e4dfaf389275e4c79 (diff)
downloadnextcloud-server-8fdbb988995099fc2bd79ca5704120873952651b.tar.gz
nextcloud-server-8fdbb988995099fc2bd79ca5704120873952651b.zip
Merge pull request #6168 from owncloud/extstorage-testtestmethod
Added unit test for the test() method of ext storage
-rw-r--r--lib/private/files/storage/wrapper/wrapper.php8
-rw-r--r--tests/lib/files/storage/storage.php7
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/files/storage/wrapper/wrapper.php b/lib/private/files/storage/wrapper/wrapper.php
index 0336c27efa1..f9adda80314 100644
--- a/lib/private/files/storage/wrapper/wrapper.php
+++ b/lib/private/files/storage/wrapper/wrapper.php
@@ -424,4 +424,12 @@ class Wrapper implements \OC\Files\Storage\Storage {
public function getETag($path) {
return $this->storage->getETag($path);
}
+
+ /**
+ * Returns true
+ * @return true
+ */
+ public function test() {
+ return $this->storage->test();
+ }
}
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 5a0581665a2..182c014d999 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -43,6 +43,13 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
}
/**
+ * Check that the test() function works
+ */
+ public function testTestFunction() {
+ $this->assertTrue($this->instance->test());
+ }
+
+ /**
* @dataProvider directoryProvider
*/
public function testDirectories($directory) {