Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Sep 23, 2024
1 parent a611a2b commit 6bd1f12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Feature_v2/WebAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function testWebAuthnRegisterExecution(): void
$this->assertNoContent($response); // code 204

// Check that it is indeed in the list
$responseList = $this->actingAs($this->admin)->postJson('WebAuthn::list');
$responseList = $this->actingAs($this->admin)->getJson('WebAuthn');
$this->assertOk($responseList); // code 200

// Check that the key is indeed in the list
Expand Down Expand Up @@ -147,7 +147,7 @@ public function testWebAuthnRegisterExpired(): void
]);
$this->assertUnprocessable($response); // Challenge is expired

$responseList = $this->actingAs($this->admin)->postJson('WebAuthn::list');
$responseList = $this->actingAs($this->admin)->getJson('WebAuthn');
$this->assertOk($responseList); // code 200

// check that the key has not been added to the list
Expand Down Expand Up @@ -379,7 +379,7 @@ public function testWebAuthListingUnautorized(): void
{
$this->createCredentials();

$responseList = $this->postJson('WebAuthn::list');
$responseList = $this->getJson('WebAuthn');
$this->assertUnauthorized($responseList);
}

Expand Down

0 comments on commit 6bd1f12

Please sign in to comment.