aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {