]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust test 2159/head
authorRobin Appelman <robin@icewind.nl>
Wed, 16 Nov 2016 13:33:59 +0000 (14:33 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 2 Jan 2017 13:17:20 +0000 (14:17 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
tests/lib/Files/FilesystemTest.php

index df77a0855def9cb41e4329fc7136367e997c1caa..1eb6c4fc54b275ab8375d1e2ccb128bcb53e9163 100644 (file)
@@ -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());
                }