Skip to content

Commit 3a7e555

Browse files
author
Greg Bowler
committed
Test query string does not affect completeAuth
1 parent 7a80ba6 commit 3a7e555

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/phpunit/AuthenticatorTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,19 @@ public function testCompleteAuth() {
296296
$newSessionData->getUserData()
297297
);
298298
}
299+
300+
public function testCompleteAuthNotAffectedByQueryString() {
301+
$redirectHandler = self::createMock(RedirectHandler::class);
302+
$redirectHandler->expects(self::never())
303+
->method("redirect");
304+
$_SESSION = [];
305+
306+
new Authenticator(
307+
"test-key",
308+
"/example-path?filter=something",
309+
AuthUri::DEFAULT_BASE_URI,
310+
null,
311+
$redirectHandler
312+
);
313+
}
299314
}

0 commit comments

Comments
 (0)