Skip to content

Commit 99c235c

Browse files
committed
fix: corrected tests
1 parent b74f01b commit 99c235c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/phpMyFAQ/Controller/Frontend/AzureAuthenticationControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function testCallbackReturnsErrorResponseWhenProviderErrorIsSet(): void
134134
$response = $controller->callback($request);
135135

136136
$this->assertInstanceOf(RedirectResponse::class, $response);
137-
$this->assertSame('https://example.com/', $response->headers->get('Location'));
137+
$this->assertSame($this->configuration->getDefaultUrl(), $response->headers->get('Location'));
138138
}
139139

140140
/**

tests/phpMyFAQ/Controller/Frontend/KeycloakAuthenticationControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function testCallbackReturnsErrorResponseWhenProviderErrorIsSet(): void
146146
$response = $controller->callback(new Request(['error_description' => 'Denied by provider']));
147147

148148
$this->assertInstanceOf(RedirectResponse::class, $response);
149-
$this->assertSame('https://example.com/', $response->headers->get('Location'));
149+
$this->assertSame($this->configuration->getDefaultUrl(), $response->headers->get('Location'));
150150
}
151151

152152
public function testCallbackStoresUserSessionDataOnSuccessfulLogin(): void

0 commit comments

Comments
 (0)