diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-16 14:33:59 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-01-02 14:17:20 +0100 |
commit | 3243a6032ab2be602a2a2b3472f3950d093f34ae (patch) | |
tree | 162b503fbd8c7c2d6eb066de2190a56960428b33 /tests | |
parent | ac2542f0f074cc7ec0f5ffdc6970a9981a4fac02 (diff) | |
download | nextcloud-server-3243a6032ab2be602a2a2b3472f3950d093f34ae.tar.gz nextcloud-server-3243a6032ab2be602a2a2b3472f3950d093f34ae.zip |
adjust test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/FilesystemTest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/Files/FilesystemTest.php b/tests/lib/Files/FilesystemTest.php index df77a0855de..1eb6c4fc54b 100644 --- a/tests/lib/Files/FilesystemTest.php +++ b/tests/lib/Files/FilesystemTest.php @@ -414,11 +414,9 @@ class FilesystemTest extends \Test\TestCase { $homeMount = \OC\Files\Filesystem::getStorage('/' . $userId . '/'); $this->assertTrue($homeMount->instanceOfStorage('\OCP\Files\IHomeStorage')); - if (getenv('RUN_OBJECTSTORE_TESTS')) { - $this->assertTrue($homeMount->instanceOfStorage('\OC\Files\ObjectStore\HomeObjectStoreStorage')); + if ($homeMount->instanceOfStorage('\OC\Files\ObjectStore\HomeObjectStoreStorage')) { $this->assertEquals('object::user:' . $userId, $homeMount->getId()); - } else { - $this->assertTrue($homeMount->instanceOfStorage('\OC\Files\Storage\Home')); + } else if ($homeMount->instanceOfStorage('\OC\Files\Storage\Home')) { $this->assertEquals('home::' . $userId, $homeMount->getId()); } |