]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use generated URL
authorLukas Reschke <lukas@statuscode.ch>
Mon, 15 Aug 2016 15:37:55 +0000 (17:37 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 15 Aug 2016 17:26:24 +0000 (19:26 +0200)
tests/Core/Controller/LoginControllerTest.php

index 86bf4d8fdfcca618b22df6dae840d5e95a4a34cc..0439b5b7de073b7731e85cb30f30fb3999b8c4bd 100644 (file)
@@ -327,7 +327,7 @@ class LoginControllerTest extends TestCase {
                /** @var IUser | \PHPUnit_Framework_MockObject_MockObject $user */
                $user = $this->getMock('\OCP\IUser');
                $password = 'secret';
-               $indexPageUrl = 'http://localhost/index.php/apps/files/';
+               $indexPageUrl = \OC_Util::getDefaultPageUrl();
 
                $this->request
                        ->expects($this->exactly(2))