Fixes relaying_party typo
This commit is contained in:
@@ -457,7 +457,7 @@ class ValidationTest extends TestCase
|
||||
$this->request->setJson(new ParameterBag($invalid));
|
||||
|
||||
$this->expectException(AssertionException::class);
|
||||
$this->expectExceptionMessage('Assertion Error: Relaying Party ID not scoped to current.');
|
||||
$this->expectExceptionMessage('Assertion Error: Relying Party ID not scoped to current.');
|
||||
|
||||
$this->validate();
|
||||
}
|
||||
@@ -477,7 +477,7 @@ class ValidationTest extends TestCase
|
||||
$this->request->setJson(new ParameterBag($invalid));
|
||||
|
||||
$this->expectException(AssertionException::class);
|
||||
$this->expectExceptionMessage('Assertion Error: Relaying Party ID not scoped to current.');
|
||||
$this->expectExceptionMessage('Assertion Error: Relying Party ID not scoped to current.');
|
||||
|
||||
$this->validate();
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class CreatorTest extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_uses_relaying_party_config(): void
|
||||
public function test_uses_relying_party_config(): void
|
||||
{
|
||||
config(['webauthn.relying_party' => [
|
||||
'id' => 'https://foo.bar',
|
||||
|
||||
@@ -504,7 +504,7 @@ class ValidationTest extends TestCase
|
||||
public function test_rp_id_fails_if_not_equal(): void
|
||||
{
|
||||
$this->expectException(AttestationException::class);
|
||||
$this->expectExceptionMessage('Attestation Error: Relaying Party ID not scoped to current.');
|
||||
$this->expectExceptionMessage('Attestation Error: Relying Party ID not scoped to current.');
|
||||
|
||||
$invalid = FakeAuthenticator::attestationResponse();
|
||||
|
||||
@@ -524,7 +524,7 @@ class ValidationTest extends TestCase
|
||||
public function test_rp_id_fails_if_not_contained(): void
|
||||
{
|
||||
$this->expectException(AttestationException::class);
|
||||
$this->expectExceptionMessage('Attestation Error: Relaying Party ID not scoped to current.');
|
||||
$this->expectExceptionMessage('Attestation Error: Relying Party ID not scoped to current.');
|
||||
|
||||
$invalid = FakeAuthenticator::attestationResponse();
|
||||
|
||||
@@ -546,7 +546,7 @@ class ValidationTest extends TestCase
|
||||
$this->app->when(CheckRelyingPartyHashSame::class)
|
||||
->needs(ConfigContract::class)
|
||||
->give(static function (): Repository {
|
||||
return tap(new Repository())->set('webauthn.relaying_party.id', 'https://otherhost.com');
|
||||
return tap(new Repository())->set('webauthn.relying_party.id', 'https://otherhost.com');
|
||||
});
|
||||
|
||||
$this->expectException(AttestationException::class);
|
||||
|
||||
Reference in New Issue
Block a user