From 99167736db2b157f6a65ab89bba60fda7ddff4a7 Mon Sep 17 00:00:00 2001 From: lrljoe Date: Fri, 25 Oct 2024 16:57:25 +0000 Subject: [PATCH] Fix styling --- config/livewire-tables.php | 4 ++-- tests/Events/ColumnsSelectedTest.php | 3 ++- tests/Events/FilterAppliedTest.php | 3 ++- tests/Events/SearchAppliedTest.php | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config/livewire-tables.php b/config/livewire-tables.php index 9a176a2fd..7c2e20983 100644 --- a/config/livewire-tables.php +++ b/config/livewire-tables.php @@ -119,8 +119,8 @@ */ 'events' => [ /** - * Enable or disable passing the user from Laravel's Auth service to events - */ + * Enable or disable passing the user from Laravel's Auth service to events + */ 'enableUserForEvent' => true, ], diff --git a/tests/Events/ColumnsSelectedTest.php b/tests/Events/ColumnsSelectedTest.php index a6dd19580..bf32df5a6 100644 --- a/tests/Events/ColumnsSelectedTest.php +++ b/tests/Events/ColumnsSelectedTest.php @@ -95,7 +95,8 @@ public function test_user_not_set_on_event_when_a_column_selection_is_updated_an $this->basicTable->selectAllColumns(); Event::assertDispatched(ColumnsSelected::class, function ($event) { - $this->assertFalse(isset($event->user), "User set on Event when config is set to disable this behavior"); + $this->assertFalse(isset($event->user), 'User set on Event when config is set to disable this behavior'); + return true; }); } diff --git a/tests/Events/FilterAppliedTest.php b/tests/Events/FilterAppliedTest.php index d48040b86..612530494 100644 --- a/tests/Events/FilterAppliedTest.php +++ b/tests/Events/FilterAppliedTest.php @@ -76,7 +76,8 @@ public function test_user_not_set_on_event_when_a_filter_is_applied_and_user_for $this->basicTable->enableFilterAppliedEvent()->setFilter('pet_name_filter', 'test value'); Event::assertDispatched(FilterApplied::class, function ($event) { - $this->assertFalse(isset($event->user), "User set on Event when config is set to disable this behavior"); + $this->assertFalse(isset($event->user), 'User set on Event when config is set to disable this behavior'); + return true; }); } diff --git a/tests/Events/SearchAppliedTest.php b/tests/Events/SearchAppliedTest.php index d559697c6..d76af688e 100644 --- a/tests/Events/SearchAppliedTest.php +++ b/tests/Events/SearchAppliedTest.php @@ -86,7 +86,8 @@ public function test_user_not_set_on_event_when_a_search_is_applied_and_user_for $this->basicTable->enableSearchAppliedEvent()->setSearch('test')->applySearch(); Event::assertDispatched(SearchApplied::class, function ($event) { - $this->assertFalse(isset($event->user), "User set on Event when config is set to disable this behavior"); + $this->assertFalse(isset($event->user), 'User set on Event when config is set to disable this behavior'); + return true; }); }