From 5d43c4a9c7f4b9a82b77aefa7d72e4031153dd61 Mon Sep 17 00:00:00 2001 From: William Hall Date: Tue, 24 Dec 2024 15:01:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20more=20fix=20assert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Unit/AuditTest.php | 2 +- tests/Unit/AuditableTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Unit/AuditTest.php b/tests/Unit/AuditTest.php index dfc1b52d..1013bb48 100644 --- a/tests/Unit/AuditTest.php +++ b/tests/Unit/AuditTest.php @@ -235,7 +235,7 @@ public function itReturnsProperCommandLineInUrlAuditMetadata() $this->assertNotNull($audit); - self::Assert()::assertEquals($audit->getMetadata()['audit_url'], 'vendor/bin/phpunit tests/Unit/AuditTest.php --group command-line-url-resolver'); + Assert::assertEquals($audit->getMetadata()['audit_url'], 'vendor/bin/phpunit tests/Unit/AuditTest.php --group command-line-url-resolver'); } /** diff --git a/tests/Unit/AuditableTest.php b/tests/Unit/AuditableTest.php index 8a9c43a4..8e728dcb 100644 --- a/tests/Unit/AuditableTest.php +++ b/tests/Unit/AuditableTest.php @@ -1432,7 +1432,7 @@ public function itWorksWhenConfigAllowedArrayValueIsTrue() $auditData = $model->toAudit(); $morphPrefix = config('audit.user.morph_prefix', 'user'); - self::Assert()::assertArraySubset([ + Assert::assertArraySubset([ 'old_values' => [], 'new_values' => [ 'title' => 'How To Audit Eloquent Models', @@ -1477,7 +1477,7 @@ public function itWorksWhenConfigAllowedArrayValueIsFalse() $auditData = $model->toAudit(); $morphPrefix = config('audit.user.morph_prefix', 'user'); - self::Assert()::assertArraySubset([ + Assert::assertArraySubset([ 'old_values' => [], 'new_values' => [ 'title' => 'How To Audit Eloquent Models',