Skip to content

Commit

Permalink
csfix
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Nov 14, 2024
1 parent 933e731 commit b9298f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion tests/Feature/Http/ShelfControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Tests\TestCase;
use Kami\Cocktail\Models\User;
use Kami\Cocktail\Models\Cocktail;
use Kami\Cocktail\Models\Ingredient;
use Kami\Cocktail\Models\BarIngredient;
use Kami\Cocktail\Models\UserIngredient;
Expand Down
18 changes: 12 additions & 6 deletions tests/Feature/Repository/CocktailRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,22 @@ public function test_fetch_similar_cocktails(): void
->state(['optional' => false])
->for($vermouth)
->recycle($membership->bar),
'ingredients')
'ingredients'
)
->has(
CocktailIngredient::factory()
->state(['optional' => false])
->for($campari)
->recycle($membership->bar),
'ingredients')
'ingredients'
)
->has(
CocktailIngredient::factory()
->state(['optional' => false])
->for($gin)
->recycle($membership->bar),
'ingredients')
'ingredients'
)
->create();

$boulvardier = Cocktail::factory()->for($membership->bar)
Expand All @@ -244,19 +247,22 @@ public function test_fetch_similar_cocktails(): void
->state(['optional' => false])
->for($vermouth)
->recycle($membership->bar),
'ingredients')
'ingredients'
)
->has(
CocktailIngredient::factory()
->state(['optional' => false])
->for($campari)
->recycle($membership->bar),
'ingredients')
'ingredients'
)
->has(
CocktailIngredient::factory()
->state(['optional' => false])
->for($bourbon)
->recycle($membership->bar),
'ingredients')
'ingredients'
)
->create();

$repository = resolve(CocktailRepository::class);
Expand Down

0 comments on commit b9298f5

Please sign in to comment.