summaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-06 11:25:19 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-09-06 16:38:24 +0200
commit444779ce96d8b5ef0086dab524a3540c89b3f042 (patch)
tree80bdd50dbcac29d67a55754e1748dfb2871a5ce2 /tests/Core
parent504c1abee0162ea6824a959f0c1ca95407aea46a (diff)
downloadnextcloud-server-444779ce96d8b5ef0086dab524a3540c89b3f042.tar.gz
nextcloud-server-444779ce96d8b5ef0086dab524a3540c89b3f042.zip
Fix tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/ClientFlowLoginControllerTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Core/Controller/ClientFlowLoginControllerTest.php b/tests/Core/Controller/ClientFlowLoginControllerTest.php
index 1132c0f540c..89253f13038 100644
--- a/tests/Core/Controller/ClientFlowLoginControllerTest.php
+++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php
@@ -149,6 +149,11 @@ class ClientFlowLoginControllerTest extends TestCase {
->expects($this->once())
->method('set')
->with('client.flow.state.token', 'StateToken');
+ $this->session
+ ->expects($this->once())
+ ->method('get')
+ ->with('oauth.state')
+ ->willReturn('OauthStateToken');
$this->defaults
->expects($this->once())
->method('getName')
@@ -168,6 +173,7 @@ class ClientFlowLoginControllerTest extends TestCase {
'urlGenerator' => $this->urlGenerator,
'stateToken' => 'StateToken',
'serverHost' => 'example.com',
+ 'oauthState' => 'OauthStateToken',
],
'guest'
);
@@ -199,6 +205,11 @@ class ClientFlowLoginControllerTest extends TestCase {
->expects($this->once())
->method('set')
->with('client.flow.state.token', 'StateToken');
+ $this->session
+ ->expects($this->once())
+ ->method('get')
+ ->with('oauth.state')
+ ->willReturn('OauthStateToken');
$this->defaults
->expects($this->once())
->method('getName')
@@ -218,6 +229,7 @@ class ClientFlowLoginControllerTest extends TestCase {
'urlGenerator' => $this->urlGenerator,
'stateToken' => 'StateToken',
'serverHost' => 'example.com',
+ 'oauthState' => 'OauthStateToken',
],
'guest'
);