diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-12-03 11:00:49 -0800 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-12-03 11:00:49 -0800 |
commit | 8fdbb988995099fc2bd79ca5704120873952651b (patch) | |
tree | 92921e53cb398a25c02ec5c0a625d95d9fe85d96 | |
parent | 16eb7c15d26054055f5e8d34fd8333948b6fd8ff (diff) | |
parent | 6cf9844e9c4790342053e00e4dfaf389275e4c79 (diff) | |
download | nextcloud-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.php | 8 | ||||
-rw-r--r-- | tests/lib/files/storage/storage.php | 7 |
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) { |