From 9c851b28b4138ddc99951e78e26512958f35ba3d Mon Sep 17 00:00:00 2001 From: nexxo Date: Tue, 28 Jul 2026 15:10:58 +0200 Subject: [PATCH] Satisfy Pint on the two new guard-boundary tests Import the classes instead of referencing them fully-qualified, and use single quotes where no interpolation or escaping is needed. --- tests/Feature/Admin/PasswordConfirmationGuardTest.php | 5 +++-- tests/Feature/EnsureCustomerActiveTest.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Admin/PasswordConfirmationGuardTest.php b/tests/Feature/Admin/PasswordConfirmationGuardTest.php index 8a02996..557d4a7 100644 --- a/tests/Feature/Admin/PasswordConfirmationGuardTest.php +++ b/tests/Feature/Admin/PasswordConfirmationGuardTest.php @@ -1,6 +1,7 @@ create(['password' => 'kunden-passwort']); - Livewire::actingAs($user)->test(App\Livewire\Settings::class) + Livewire::actingAs($user)->test(Settings::class) ->set('confirmablePassword', 'kunden-passwort') ->call('confirmPassword') ->assertHasNoErrors(); @@ -112,7 +113,7 @@ it("does not let a portal customer's password confirmation satisfy the console's // App\Livewire\Settings::confirmationGuard() defaults to 'web', resolved // explicitly by guard — no actingAs needed to reach the right account, // the login() call above already put it in the session. - Livewire::test(App\Livewire\Settings::class) + Livewire::test(Settings::class) ->set('confirmablePassword', 'kunden-passwort') ->call('confirmPassword') ->assertHasNoErrors(); diff --git a/tests/Feature/EnsureCustomerActiveTest.php b/tests/Feature/EnsureCustomerActiveTest.php index 9d02e38..cd091f0 100644 --- a/tests/Feature/EnsureCustomerActiveTest.php +++ b/tests/Feature/EnsureCustomerActiveTest.php @@ -15,7 +15,7 @@ use Illuminate\Support\Facades\Auth; * silently signed an operator elsewhere in that same browser out of the * console too. */ -it("suspending a portal customer does not sign an operator out of a console session sharing the same browser", function () { +it('suspending a portal customer does not sign an operator out of a console session sharing the same browser', function () { $operator = Operator::factory()->role('Owner')->create(); $user = User::factory()->create(); Customer::factory()->create(['email' => $user->email, 'user_id' => $user->id, 'status' => 'suspended']);