aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/ClientFlowLoginControllerTest.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/Core/Controller/ClientFlowLoginControllerTest.php b/tests/Core/Controller/ClientFlowLoginControllerTest.php
index 99388e2c441..21673863223 100644
--- a/tests/Core/Controller/ClientFlowLoginControllerTest.php
+++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php
@@ -425,10 +425,14 @@ class ClientFlowLoginControllerTest extends TestCase {
);
$this->request
->expects($this->once())
+ ->method('getServerProtocol')
+ ->willReturn('http');
+ $this->request
+ ->expects($this->once())
->method('getServerHost')
->willReturn('example.com');
- $expected = new Http\RedirectResponse('nc://login/server:example.com&user:MyLoginName&password:MyGeneratedToken');
+ $expected = new Http\RedirectResponse('nc://login/server:http://example.com&user:MyLoginName&password:MyGeneratedToken');
$this->assertEquals($expected, $this->clientFlowLoginController->generateAppPassword('MyStateToken'));
}
@@ -573,10 +577,14 @@ class ClientFlowLoginControllerTest extends TestCase {
);
$this->request
->expects($this->once())
+ ->method('getServerProtocol')
+ ->willReturn('http');
+ $this->request
+ ->expects($this->once())
->method('getServerHost')
->willReturn('example.com');
- $expected = new Http\RedirectResponse('nc://login/server:example.com&user:MyLoginName&password:MyGeneratedToken');
+ $expected = new Http\RedirectResponse('nc://login/server:http://example.com&user:MyLoginName&password:MyGeneratedToken');
$this->assertEquals($expected, $this->clientFlowLoginController->generateAppPassword('MyStateToken'));
}
}