aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-03 21:44:30 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-04 11:49:29 +0100
commite489a1a7c8b2d8c4e0c6b2fc9f0d15d328a44ec1 (patch)
treed925750a49e6d0b6c9c2be33782e26fd4a282274
parent776d9e6805a8c100fd746c577a6442ff0bcffb57 (diff)
downloadnextcloud-server-e489a1a7c8b2d8c4e0c6b2fc9f0d15d328a44ec1.tar.gz
nextcloud-server-e489a1a7c8b2d8c4e0c6b2fc9f0d15d328a44ec1.zip
removes invalid tests, adapts another one
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--tests/lib/Files/FilesystemTest.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/lib/Files/FilesystemTest.php b/tests/lib/Files/FilesystemTest.php
index 1eb6c4fc54b..a98af220ba1 100644
--- a/tests/lib/Files/FilesystemTest.php
+++ b/tests/lib/Files/FilesystemTest.php
@@ -368,39 +368,6 @@ class FilesystemTest extends \Test\TestCase {
$this->assertEquals(2, $thrown);
}
- public function testUserNameCasing() {
- $this->logout();
- $userId = $this->getUniqueID('user_');
-
- \OC_User::clearBackends();
- // needed for loginName2UserName mapping
- $userBackend = $this->createMock(\OC\User\Database::class);
- \OC::$server->getUserManager()->registerBackend($userBackend);
-
- $userBackend->expects($this->once())
- ->method('userExists')
- ->with(strtoupper($userId))
- ->will($this->returnValue(true));
- $userBackend->expects($this->once())
- ->method('loginName2UserName')
- ->with(strtoupper($userId))
- ->will($this->returnValue($userId));
-
- $view = new \OC\Files\View();
- $this->assertFalse($view->file_exists('/' . $userId));
-
- \OC\Files\Filesystem::initMountPoints(strtoupper($userId));
-
- list($storage1, $path1) = $view->resolvePath('/' . $userId);
- list($storage2, $path2) = $view->resolvePath('/' . strtoupper($userId));
-
- $this->assertTrue($storage1->instanceOfStorage('\OCP\Files\IHomeStorage'));
- $this->assertEquals('', $path1);
-
- // not mounted, still on the local root storage
- $this->assertEquals(strtoupper($userId), $path2);
- }
-
/**
* Tests that the home storage is used for the user's mount point
*/