Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jan 11, 2024
1 parent bbbb67a commit b8177b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function testUsesTheUrlOfThePage(): void
->willReturn($user)
;

$handler = $this->getHandler($framework, null, $urlGenerator);
$handler = $this->getHandler($framework, null, false, $urlGenerator);
$response = $handler->onAuthenticationSuccess(new Request(), $token);

$this->assertSame('http://localhost/page', $response->getTargetUrl());
Expand Down Expand Up @@ -451,6 +451,6 @@ private function getHandler(ContaoFramework|null $framework = null, LoggerInterf
->willReturn($checkRequest)
;

return new AuthenticationSuccessHandler($framework, $trustedDeviceManager, $firewallMap, $uriSigner, $tokenStorage, $urlGenerator, $logger);
return new AuthenticationSuccessHandler($framework, $trustedDeviceManager, $firewallMap, $urlGenerator, $uriSigner, $tokenStorage, $logger);
}
}

0 comments on commit b8177b8

Please sign in to comment.