Skip to content

Commit

Permalink
Add return types to test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift authored and chelout committed Mar 15, 2024
1 parent fe6d9b8 commit 6129400
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions tests/Feature/HasBelongsToEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
10 changes: 5 additions & 5 deletions tests/Feature/HasBelongsToManyEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/HasManyEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/HasMorphManyEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/HasMorphOneEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/HasMorphToEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/HasMorphToManyEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
14 changes: 7 additions & 7 deletions tests/Feature/HasMorphedByManyEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/HasOneEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand All @@ -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();

Expand Down

0 comments on commit 6129400

Please sign in to comment.