diff --git a/tests/Assertion/CreatorTest.php b/tests/Assertion/CreatorTest.php index 4b5fb4d..fc6b76d 100644 --- a/tests/Assertion/CreatorTest.php +++ b/tests/Assertion/CreatorTest.php @@ -52,7 +52,7 @@ class CreatorTest extends TestCase { config(['webauthn.challenge.timeout' => 120]); - $this->freezeSecond(); + $this->travelTo(now()->startOfSecond()); $this->response() ->assertSessionHas('_webauthn', static function (Challenge $challenge): bool { diff --git a/tests/Assertion/ValidationTest.php b/tests/Assertion/ValidationTest.php index 39b86ac..9c62fc0 100644 --- a/tests/Assertion/ValidationTest.php +++ b/tests/Assertion/ValidationTest.php @@ -55,7 +55,7 @@ class ValidationTest extends TestCase $this->validator = new AssertionValidator($this->app); $this->validation = new AssertionValidation($this->request); - $this->freezeSecond(); + $this->travelTo(now()->startOfSecond()); $this->challenge = new Challenge( new ByteBuffer(base64_decode(FakeAuthenticator::ASSERTION_CHALLENGE)), 60, false, diff --git a/tests/Attestation/CreatorTest.php b/tests/Attestation/CreatorTest.php index 9ef1190..bfaa857 100644 --- a/tests/Attestation/CreatorTest.php +++ b/tests/Attestation/CreatorTest.php @@ -50,7 +50,7 @@ class CreatorTest extends TestCase public function test_base_structure(): void { - $this->freezeSecond(); + $this->travelTo(now()->startOfSecond()); $this->response() ->assertSessionHas('_webauthn', function (Challenge $challenge): bool { diff --git a/tests/Attestation/ValidationTest.php b/tests/Attestation/ValidationTest.php index d9d408e..18eed64 100644 --- a/tests/Attestation/ValidationTest.php +++ b/tests/Attestation/ValidationTest.php @@ -63,7 +63,7 @@ class ValidationTest extends TestCase $this->validator = new AttestationValidator($this->app); $this->validation = new AttestationValidation($this->user, $this->request); - $this->freezeSecond(); + $this->travelTo(now()->startOfSecond()); $this->challenge = new Challenge( new ByteBuffer(base64_decode(FakeAuthenticator::ATTESTATION_CHALLENGE)), diff --git a/tests/Models/WebAuthnCredentialTest.php b/tests/Models/WebAuthnCredentialTest.php index c6a1564..555d89c 100644 --- a/tests/Models/WebAuthnCredentialTest.php +++ b/tests/Models/WebAuthnCredentialTest.php @@ -86,7 +86,7 @@ class WebAuthnCredentialTest extends TestCase $credential = WebAuthnCredential::find(FakeAuthenticator::CREDENTIAL_ID); - $this->freezeSecond(); + $this->travelTo(now()->startOfSecond()); $credential->disable(); $credential->disable(); @@ -105,7 +105,7 @@ class WebAuthnCredentialTest extends TestCase $credential = WebAuthnCredential::find('HLs22xpFT7ilSbYvbARFNf9Q3nVyfczTT9LFhtFT89D'); - $this->freezeSecond(); + $this->travelTo(now()->startOfSecond()); $credential->enable(); $credential->enable();