We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a66aa6 commit 5f537a4Copy full SHA for 5f537a4
test/phpunit/AuthenticatorTest.php
@@ -6,6 +6,7 @@
6
use Authwave\NotLoggedInException;
7
use Authwave\ProviderUri\AdminUri;
8
use Authwave\ProviderUri\AuthUri;
9
+use Authwave\ProviderUri\LogoutUri;
10
use Authwave\RedirectHandler;
11
use Authwave\SessionData;
12
use Authwave\SessionNotStartedException;
@@ -73,6 +74,12 @@ public function testLogoutClearsSession() {
73
74
];
75
76
$redirectHandler = self::createMock(RedirectHandler::class);
77
+ $redirectHandler->expects(self::once())
78
+ ->method("redirect")
79
+ ->with(self::callback(fn(UriInterface $uri) =>
80
+ $uri->getHost() === AuthUri::DEFAULT_BASE_REMOTE_URI
81
+ && $uri->getPath() === LogoutUri::PATH_LOGOUT
82
+ ));
83
84
$sut = new Authenticator(
85
"example-app-id",
0 commit comments