From 818c0e8e040135e61c490e8aa56e0fccc15d825f Mon Sep 17 00:00:00 2001 From: Italo Date: Tue, 14 Jun 2022 05:36:22 -0400 Subject: [PATCH] Fixes Assertion for older Laravel version. --- tests/Attestation/CreatorTest.php | 2 +- tests/Http/Requests/AttestationRequestTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Attestation/CreatorTest.php b/tests/Attestation/CreatorTest.php index bfaa857..f44d3d5 100644 --- a/tests/Attestation/CreatorTest.php +++ b/tests/Attestation/CreatorTest.php @@ -186,6 +186,6 @@ class CreatorTest extends TestCase 'public_key' => 'test', ])->save(); - $this->response()->assertJsonMissingPath('excludeCredentials'); + $this->response()->assertJsonMissing(['excludeCredentials']); } } diff --git a/tests/Http/Requests/AttestationRequestTest.php b/tests/Http/Requests/AttestationRequestTest.php index 5e86ab8..2778e4e 100644 --- a/tests/Http/Requests/AttestationRequestTest.php +++ b/tests/Http/Requests/AttestationRequestTest.php @@ -144,6 +144,6 @@ class AttestationRequestTest extends TestCase 'public_key' => 'test_key', ]); - $this->postJson('test')->assertJsonMissingPath('excludeCredentials'); + $this->postJson('test')->assertJsonMissing(['excludeCredentials']); } }