Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 13, 2024
1 parent 7ec90a7 commit d15c049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Unit/Services/ToggleNameToFavoritesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function it_fails_if_the_list_of_favorites_doesnt_exist(): void
$user = User::factory()->create();
$name = Name::factory()->create();

$this->actingAs($user);

$this->expectException(ModelNotFoundException::class);
(new ToggleNameToFavorites(
nameId: $name->id,
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Services/ToggleNameToNameListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function it_fails_if_the_list_of_favorites_doesnt_exist(): void
$name = Name::factory()->create();
$list = NameList::factory()->create();

$this->actingAs($user);

$this->expectException(ModelNotFoundException::class);

(new ToggleNameToNameList(
Expand Down

0 comments on commit d15c049

Please sign in to comment.