diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-29 13:45:50 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-29 13:45:50 +0200 |
commit | 8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94 (patch) | |
tree | 27177b95cde27fa7e080f8db29c50926969ac4e2 /tests/lib/files/storage/wrapper/wrapper.php | |
parent | c0f02be50a293c15007eea5a055dc2cd055561fc (diff) | |
download | nextcloud-server-8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94.tar.gz nextcloud-server-8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94.zip |
Add $storage->instanceOfStorage to handle instanceof for storage wrappers
Diffstat (limited to 'tests/lib/files/storage/wrapper/wrapper.php')
-rw-r--r-- | tests/lib/files/storage/wrapper/wrapper.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/files/storage/wrapper/wrapper.php b/tests/lib/files/storage/wrapper/wrapper.php index e31abfc7324..8bcf42035d4 100644 --- a/tests/lib/files/storage/wrapper/wrapper.php +++ b/tests/lib/files/storage/wrapper/wrapper.php @@ -23,4 +23,9 @@ class Wrapper extends \Test\Files\Storage\Storage { public function tearDown() { \OC_Helper::rmdirr($this->tmpDir); } + + public function testInstanceOfStorageWrapper() { + $this->assertTrue($this->instance->instanceOfStorage('\OC\Files\Storage\Local')); + $this->assertTrue($this->instance->instanceOfStorage('\OC\Files\Storage\Wrapper\Wrapper')); + } } |