adjust test

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-11-16 14:33:59 +01:00 committed by Roeland Jago Douma
parent ac2542f0f0
commit 3243a6032a
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 4 deletions

View 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());
}