From 78f92925553d29c6149fcd7c45b1a75dd03b1b17 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 29 Jan 2025 16:15:27 -0800 Subject: [PATCH] Inline variable --- .../Notifications/Email/AssetAcceptanceReminderTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Notifications/Email/AssetAcceptanceReminderTest.php b/tests/Feature/Notifications/Email/AssetAcceptanceReminderTest.php index 4898234e10..34bc935bb7 100644 --- a/tests/Feature/Notifications/Email/AssetAcceptanceReminderTest.php +++ b/tests/Feature/Notifications/Email/AssetAcceptanceReminderTest.php @@ -11,7 +11,6 @@ use Tests\TestCase; class AssetAcceptanceReminderTest extends TestCase { - private CheckoutAcceptance $checkoutAcceptance; private User $actor; protected function setUp(): void @@ -21,15 +20,15 @@ class AssetAcceptanceReminderTest extends TestCase Mail::fake(); $this->actor = User::factory()->canViewReports()->create(); - $this->checkoutAcceptance = CheckoutAcceptance::factory()->pending()->create(); } public function testMustHavePermissionToSendReminder() { + $checkoutAcceptance = CheckoutAcceptance::factory()->pending()->create(); $userWithoutPermission = User::factory()->create(); $this->actingAs($userWithoutPermission) - ->post($this->routeFor($this->checkoutAcceptance)) + ->post($this->routeFor($checkoutAcceptance)) ->assertForbidden(); }