Skip to content

Commit a714886

Browse files
author
Greg Bowler
committed
Stub profile URI
1 parent eb3745c commit a714886

File tree

3 files changed

+6
-41
lines changed

3 files changed

+6
-41
lines changed

src/ProviderUri/LogoutUri.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/ProviderUri/ProfileUri.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
namespace Authwave\ProviderUri;
3+
4+
class ProfileUri extends AbstractProviderUri {
5+
6+
}

test/phpunit/AuthenticatorTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,6 @@ public function testLogoutClearsSession() {
8282
self::assertEmpty($_SESSION);
8383
}
8484

85-
public function testLogoutRedirectsToCurrentPath() {
86-
$_SESSION = [];
87-
$currentPath = "/current/example/path";
88-
89-
$redirectHandler = self::createMock(RedirectHandler::class);
90-
$redirectHandler->expects(self::once())
91-
->method("redirect")
92-
->with(self::callback(fn(UriInterface $uri) =>
93-
$uri->getHost() === AuthUri::DEFAULT_BASE_REMOTE_URI
94-
&& $uri->getPath() === LogoutUri::PATH_LOGOUT
95-
&& $uri->getQuery() === "returnTo=" . urlencode($currentPath)
96-
));
97-
98-
$sut = new Authenticator(
99-
"test-key",
100-
$currentPath,
101-
AuthUri::DEFAULT_BASE_REMOTE_URI,
102-
null,
103-
$redirectHandler
104-
);
105-
$sut->logout();
106-
}
107-
10885
public function testLoginRedirects() {
10986
$_SESSION = [];
11087

0 commit comments

Comments
 (0)