adjust test

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/2159/head
Robin Appelman 9 years ago committed by Roeland Jago Douma
parent ac2542f0f0
commit 3243a6032a
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 6
      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());
}

Loading…
Cancel
Save