aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-12-21 15:06:59 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-23 12:50:31 +0100
commit7ca656146965ebb24061f04b040d4588a5754852 (patch)
treea94312abdc4b41f22bc407a822f7cc93c0c3d284
parent4744dce4dffdbfa1817d89b07ec7dc53f99b522c (diff)
downloadnextcloud-server-7ca656146965ebb24061f04b040d4588a5754852.tar.gz
nextcloud-server-7ca656146965ebb24061f04b040d4588a5754852.zip
Remove legacy home tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r--tests/lib/Files/FilesystemTest.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/lib/Files/FilesystemTest.php b/tests/lib/Files/FilesystemTest.php
index dd4785ecf09..df77a0855de 100644
--- a/tests/lib/Files/FilesystemTest.php
+++ b/tests/lib/Files/FilesystemTest.php
@@ -426,37 +426,6 @@ class FilesystemTest extends \Test\TestCase {
if ($user !== null) { $user->delete(); }
}
- /**
- * Tests that the home storage is used in legacy mode
- * for the user's mount point
- */
- public function testLegacyHomeMount() {
- if (getenv('RUN_OBJECTSTORE_TESTS')) {
- $this->markTestSkipped('legacy storage unrelated to objectstore environments');
- }
- $datadir = \OC::$server->getConfig()->getSystemValue("datadirectory", \OC::$SERVERROOT . "/data");
- $userId = $this->getUniqueID('user_');
-
- // insert storage into DB by constructing it
- // to make initMountsPoint find its existence
- $localStorage = new \OC\Files\Storage\Local(array('datadir' => $datadir . '/' . $userId . '/'));
- // this will trigger the insert
- $cache = $localStorage->getCache();
-
- \OC::$server->getUserManager()->createUser($userId, $userId);
- \OC\Files\Filesystem::initMountPoints($userId);
-
- $homeMount = \OC\Files\Filesystem::getStorage('/' . $userId . '/');
-
- $this->assertTrue($homeMount->instanceOfStorage('\OC\Files\Storage\Home'));
- $this->assertEquals('local::' . $datadir . '/' . $userId . '/', $homeMount->getId());
-
- $user = \OC::$server->getUserManager()->get($userId);
- if ($user !== null) { $user->delete(); }
- // delete storage entry
- $cache->clear();
- }
-
public function dummyHook($arguments) {
$path = $arguments['path'];
$this->assertEquals($path, \OC\Files\Filesystem::normalizePath($path)); //the path passed to the hook should already be normalized