From 61294003c9f0c50893524bb65f90fc370d2b231e Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 15 Mar 2024 10:23:35 +0000 Subject: [PATCH] Add return types to test methods --- tests/Feature/HasBelongsToEventsTest.php | 6 +++--- tests/Feature/HasBelongsToManyEventsTest.php | 10 +++++----- tests/Feature/HasManyEventsTest.php | 6 +++--- tests/Feature/HasMorphManyEventsTest.php | 6 +++--- tests/Feature/HasMorphOneEventsTest.php | 6 +++--- tests/Feature/HasMorphToEventsTest.php | 6 +++--- tests/Feature/HasMorphToManyEventsTest.php | 8 ++++---- tests/Feature/HasMorphedByManyEventsTest.php | 14 +++++++------- tests/Feature/HasOneEventsTest.php | 6 +++--- 9 files changed, 34 insertions(+), 34 deletions(-) diff --git a/tests/Feature/HasBelongsToEventsTest.php b/tests/Feature/HasBelongsToEventsTest.php index 12ba8df..0785549 100644 --- a/tests/Feature/HasBelongsToEventsTest.php +++ b/tests/Feature/HasBelongsToEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_belongsToAssociating_and_belongsToAssociated_when_a_model_associated() + public function it_fires_belongsToAssociating_and_belongsToAssociated_when_a_model_associated(): void { Event::fake(); @@ -41,7 +41,7 @@ function ($event, $callback) use ($user, $profile) { } #[Test] - public function it_fires_belongsToDissociating_and_belongsToDissociated_when_a_model_dissociated() + public function it_fires_belongsToDissociating_and_belongsToDissociated_when_a_model_dissociated(): void { Event::fake(); @@ -64,7 +64,7 @@ function ($event, $callback) use ($user, $profile) { } #[Test] - public function it_fires_belongsToUpdating_and_belongsToUpdated_when_a_parent_model_updated() + public function it_fires_belongsToUpdating_and_belongsToUpdated_when_a_parent_model_updated(): void { Event::fake(); diff --git a/tests/Feature/HasBelongsToManyEventsTest.php b/tests/Feature/HasBelongsToManyEventsTest.php index 9c68e5f..70fab3f 100644 --- a/tests/Feature/HasBelongsToManyEventsTest.php +++ b/tests/Feature/HasBelongsToManyEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_belongsToManyAttaching_and_belongsToManyAttached_when_a_model_attached() + public function it_fires_belongsToManyAttaching_and_belongsToManyAttached_when_a_model_attached(): void { Event::fake(); @@ -42,7 +42,7 @@ function ($event, $callback) use ($user, $role) { } #[Test] - public function it_fires_belongsToManyDetaching_and_belongsToManyDetached_when_a_model_detached() + public function it_fires_belongsToManyDetaching_and_belongsToManyDetached_when_a_model_detached(): void { Event::fake(); @@ -66,7 +66,7 @@ function ($event, $callback) use ($user, $role) { } #[Test] - public function it_fires_belongsToManySyncing_and_belongsToManySynced_when_a_model_synced() + public function it_fires_belongsToManySyncing_and_belongsToManySynced_when_a_model_synced(): void { Event::fake(); @@ -89,7 +89,7 @@ function ($event, $callback) use ($user, $role) { } #[Test] - public function it_fires_belongsToManyToggling_and_belongsToManyToggled_when_a_model_toggled() + public function it_fires_belongsToManyToggling_and_belongsToManyToggled_when_a_model_toggled(): void { Event::fake(); @@ -112,7 +112,7 @@ function ($event, $callback) use ($user, $role) { } #[Test] - public function it_fires_belongsToManyUpdatingExistingPivot_and_belongsToManyUpdatedExistingPivot_when_updaing_pivot_table() + public function it_fires_belongsToManyUpdatingExistingPivot_and_belongsToManyUpdatedExistingPivot_when_updaing_pivot_table(): void { Event::fake(); diff --git a/tests/Feature/HasManyEventsTest.php b/tests/Feature/HasManyEventsTest.php index 9929f86..b179772 100644 --- a/tests/Feature/HasManyEventsTest.php +++ b/tests/Feature/HasManyEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_hasManyCreating_and_hasManyCreated_when_belonged_model_with_many_created() + public function it_fires_hasManyCreating_and_hasManyCreated_when_belonged_model_with_many_created(): void { Event::fake(); @@ -41,7 +41,7 @@ function ($event, $callback) use ($user, $post) { } #[Test] - public function it_fires_hasManySaving_and_hasManySaved_when_belonged_model_with_many_saved() + public function it_fires_hasManySaving_and_hasManySaved_when_belonged_model_with_many_saved(): void { Event::fake(); @@ -63,7 +63,7 @@ function ($event, $callback) use ($user, $post) { } #[Test] - public function it_fires_hasManyUpdating_and_hasManyUpdated_when_belonged_model_with_many_updated() + public function it_fires_hasManyUpdating_and_hasManyUpdated_when_belonged_model_with_many_updated(): void { Event::fake(); diff --git a/tests/Feature/HasMorphManyEventsTest.php b/tests/Feature/HasMorphManyEventsTest.php index 884fcb1..26665c0 100644 --- a/tests/Feature/HasMorphManyEventsTest.php +++ b/tests/Feature/HasMorphManyEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_morphManyCreating_and_morphManyCreated_when_belonged_model_with_morph_many_created() + public function it_fires_morphManyCreating_and_morphManyCreated_when_belonged_model_with_morph_many_created(): void { Event::fake(); @@ -41,7 +41,7 @@ function ($event, $callback) use ($post, $comment) { } #[Test] - public function it_fires_morphManySaving_and_morphManySaved_when_belonged_model_with_morph_many_saved() + public function it_fires_morphManySaving_and_morphManySaved_when_belonged_model_with_morph_many_saved(): void { Event::fake(); @@ -63,7 +63,7 @@ function ($event, $callback) use ($post, $comment) { } #[Test] - public function it_fires_morphManyUpdating_and_morphManyUpdated_when_belonged_model_with_morph_many_updated() + public function it_fires_morphManyUpdating_and_morphManyUpdated_when_belonged_model_with_morph_many_updated(): void { Event::fake(); diff --git a/tests/Feature/HasMorphOneEventsTest.php b/tests/Feature/HasMorphOneEventsTest.php index 89e4cf3..534a9f4 100644 --- a/tests/Feature/HasMorphOneEventsTest.php +++ b/tests/Feature/HasMorphOneEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_morphOneCreating_and_morphOneCreated_when_belonged_model_with_morph_one_created() + public function it_fires_morphOneCreating_and_morphOneCreated_when_belonged_model_with_morph_one_created(): void { Event::fake(); @@ -41,7 +41,7 @@ function ($event, $callback) use ($user, $address) { } #[Test] - public function it_fires_morphOneSaving_and_morphOneSaved_when_belonged_model_with_morph_one_saved() + public function it_fires_morphOneSaving_and_morphOneSaved_when_belonged_model_with_morph_one_saved(): void { Event::fake(); @@ -63,7 +63,7 @@ function ($event, $callback) use ($user, $address) { } #[Test] - public function it_fires_morphOneUpdating_and_morphOneUpdated_when_belonged_model_with_morph_one_updated() + public function it_fires_morphOneUpdating_and_morphOneUpdated_when_belonged_model_with_morph_one_updated(): void { Event::fake(); diff --git a/tests/Feature/HasMorphToEventsTest.php b/tests/Feature/HasMorphToEventsTest.php index 69918ee..36c0864 100644 --- a/tests/Feature/HasMorphToEventsTest.php +++ b/tests/Feature/HasMorphToEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_morphToAssociating_and_morphToAssociated() + public function it_fires_morphToAssociating_and_morphToAssociated(): void { Event::fake(); @@ -42,7 +42,7 @@ function ($event, $callback) use ($post, $comment) { } #[Test] - public function it_fires_morphToDissociating_and_morphToDissociated() + public function it_fires_morphToDissociating_and_morphToDissociated(): void { Event::fake(); @@ -66,7 +66,7 @@ function ($event, $callback) use ($post, $comment) { } #[Test] - public function it_fires_morphToUpdating_and_morphToUpdated() + public function it_fires_morphToUpdating_and_morphToUpdated(): void { Event::fake(); diff --git a/tests/Feature/HasMorphToManyEventsTest.php b/tests/Feature/HasMorphToManyEventsTest.php index 33a1f39..66a607e 100644 --- a/tests/Feature/HasMorphToManyEventsTest.php +++ b/tests/Feature/HasMorphToManyEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_morphToManyAttaching_and_morphToManyAttached() + public function it_fires_morphToManyAttaching_and_morphToManyAttached(): void { Event::fake(); @@ -42,7 +42,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphToManyDetaching_and_morphToManyDetached() + public function it_fires_morphToManyDetaching_and_morphToManyDetached(): void { Event::fake(); @@ -66,7 +66,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphToManySyncing_and_morphToManySynced() + public function it_fires_morphToManySyncing_and_morphToManySynced(): void { Event::fake(); @@ -89,7 +89,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphToManyUpdatingExistingPivot_and_morphToManyUpdatedExistingPivot() + public function it_fires_morphToManyUpdatingExistingPivot_and_morphToManyUpdatedExistingPivot(): void { Event::fake(); diff --git a/tests/Feature/HasMorphedByManyEventsTest.php b/tests/Feature/HasMorphedByManyEventsTest.php index f40d0db..624c908 100644 --- a/tests/Feature/HasMorphedByManyEventsTest.php +++ b/tests/Feature/HasMorphedByManyEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_morphedByManyAttaching_and_morphedByManyAttached_when_created() + public function it_fires_morphedByManyAttaching_and_morphedByManyAttached_when_created(): void { Event::fake(); @@ -41,7 +41,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphedByManyAttaching_and_morphedByManyAttached_when_saved() + public function it_fires_morphedByManyAttaching_and_morphedByManyAttached_when_saved(): void { Event::fake(); @@ -63,7 +63,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphedByManyAttaching_and_morphedByManyAttached_when_attached() + public function it_fires_morphedByManyAttaching_and_morphedByManyAttached_when_attached(): void { Event::fake(); @@ -86,7 +86,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphedByManyDetaching_and_morphedByManyDetached_when_detached() + public function it_fires_morphedByManyDetaching_and_morphedByManyDetached_when_detached(): void { Event::fake(); @@ -110,7 +110,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphedByManySyncing_and_morphedByManySynced() + public function it_fires_morphedByManySyncing_and_morphedByManySynced(): void { Event::fake(); @@ -133,7 +133,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphedByManyToggling_and_morphedByManyToggled() + public function it_fires_morphedByManyToggling_and_morphedByManyToggled(): void { Event::fake(); @@ -156,7 +156,7 @@ function ($event, $callback) use ($post, $tag) { } #[Test] - public function it_fires_morphedByManyUpdatingExistingPivot_and_morphedByManyUpdatedExistingPivot() + public function it_fires_morphedByManyUpdatingExistingPivot_and_morphedByManyUpdatedExistingPivot(): void { Event::fake(); diff --git a/tests/Feature/HasOneEventsTest.php b/tests/Feature/HasOneEventsTest.php index 765647c..ecd6c30 100644 --- a/tests/Feature/HasOneEventsTest.php +++ b/tests/Feature/HasOneEventsTest.php @@ -19,7 +19,7 @@ public function setup(): void } #[Test] - public function it_fires_hasOneCreating_and_hasOneCreated_when_a_belonged_model_created() + public function it_fires_hasOneCreating_and_hasOneCreated_when_a_belonged_model_created(): void { Event::fake(); @@ -41,7 +41,7 @@ function ($event, $callback) use ($user, $profile) { } #[Test] - public function it_fires_hasOneSaving_and_hasOneSaved_when_a_belonged_model_saved() + public function it_fires_hasOneSaving_and_hasOneSaved_when_a_belonged_model_saved(): void { Event::fake(); @@ -63,7 +63,7 @@ function ($event, $callback) use ($user, $profile) { } #[Test] - public function it_fires_hasOneUpdating_and_hasOneUpdated_when_a_belonged_model_updated() + public function it_fires_hasOneUpdating_and_hasOneUpdated_when_a_belonged_model_updated(): void { Event::fake();