summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-16 14:33:59 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-02 14:17:20 +0100
commit3243a6032ab2be602a2a2b3472f3950d093f34ae (patch)
tree162b503fbd8c7c2d6eb066de2190a56960428b33 /tests
parentac2542f0f074cc7ec0f5ffdc6970a9981a4fac02 (diff)
downloadnextcloud-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.php6
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());
}