summaryrefslogtreecommitdiffstats
path: root/tests/lib/util.php
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2014-06-02 10:54:41 -0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-04 07:55:46 +0200
commit0e85618c429e3a33492dbd7cf7c6dadf17219926 (patch)
tree0c3e8a327b54e2105d048ef64678270a67214266 /tests/lib/util.php
parent48eb0515e9ae96fb5a2ea46307d76454e8b01ae3 (diff)
downloadnextcloud-server-0e85618c429e3a33492dbd7cf7c6dadf17219926.tar.gz
nextcloud-server-0e85618c429e3a33492dbd7cf7c6dadf17219926.zip
Can't use assertInstanceOf on wrapped storage; use assertTrue(instanceOfStorage() instead.
Diffstat (limited to 'tests/lib/util.php')
-rw-r--r--tests/lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php
index 0bafb96cabd..aaa47f033de 100644
--- a/tests/lib/util.php
+++ b/tests/lib/util.php
@@ -154,7 +154,7 @@ class Test_Util extends PHPUnit_Framework_TestCase {
$userMount = \OC\Files\Filesystem::getMountManager()->find('/' . $user1 . '/');
$this->assertNotNull($userMount);
- $this->assertInstanceOf('\OC\Files\Storage\Wrapper\Quota', $userMount->getStorage());
+ $this->assertTrue($userMount->getStorage()->instanceOfStorage('\OC\Files\Storage\Wrapper\Quota'));
// ensure that root wasn't wrapped
$rootMount = \OC\Files\Filesystem::getMountManager()->find('/');