]> source.dussan.org Git - nextcloud-server.git/commitdiff
removes invalid tests, adapts another one
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 3 Jan 2018 20:44:30 +0000 (21:44 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 4 Jan 2018 10:49:29 +0000 (11:49 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tests/lib/Files/FilesystemTest.php

index 1eb6c4fc54b275ab8375d1e2ccb128bcb53e9163..a98af220ba1772f1289b8eac0b3895d5193d8338 100644 (file)
@@ -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
         */