Browse Source
adjust test
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/2159/head
Robin Appelman
9 years ago
committed by
Roeland Jago Douma
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with
2 additions and
4 deletions
-
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()); |
|
|
|
} |
|
|
|
|
|
|
|
|