Fixes freezeSecond not being available in older Laravel versions.

This commit is contained in:
Italo
2022-06-14 05:26:12 -04:00
parent c6fb5c02cd
commit a0258a258f
5 changed files with 6 additions and 6 deletions

View File

@@ -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 {

View File

@@ -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)),