diff --git a/tests/Controller/WebAuthnTestTrait.php b/tests/Controller/WebAuthnTestTrait.php index eb4b573f..da69e4ab 100644 --- a/tests/Controller/WebAuthnTestTrait.php +++ b/tests/Controller/WebAuthnTestTrait.php @@ -62,7 +62,8 @@ private function setAuthenticatorResponse(AuthenticatorResponse $response): Publ $content = 'The http content with AuthenticatorAssertionResponse'; $this->request = Request::create('https://webauthn.dev.openconext.local', 'POST', [], [] , [], [], $content); - $publicKeyCredential = new PublicKeyCredential('fictional', 'public-key', 'Public key credential raw id 1234', $response); + $publicKeyCredential = new PublicKeyCredential(null, 'public-key', 'Public key credential raw id 1234', $response); + $this->publicKeyCredentialLoader ->shouldReceive('load') ->with($content)