1
0
Fork 0

tests/Feature/Models/CardTest.php: Important that we create test cards with jackpot = 0.

This commit is contained in:
Henrik Hautakoski 2023-02-19 17:01:11 +01:00
parent 5ea912137b
commit 0a80dbeb5e

View file

@ -26,19 +26,19 @@ class CardTest extends TestCase
$raids = Raid::factory(2)->create();
$characters = Character::factory(2)->create();
Card::factory()->count(2)->for($raids[0])->create();
Card::factory()->count(2)->for($raids[1])->create();
Card::factory()->count(2)->for($raids[0])->create(['jackpot' => 0]);
Card::factory()->count(2)->for($raids[1])->create(['jackpot' => 0]);
Card::factory()->count(2)->for($characters[0])->create();
Card::factory()->count(2)->for($characters[1])->create();
Card::factory()->count(2)->for($characters[0])->create(['jackpot' => 0]);
Card::factory()->count(2)->for($characters[1])->create(['jackpot' => 0]);
Card::factory()->count(2)->create(['role' => 'dps']);
Card::factory()->count(2)->create(['role' => 'tank']);
Card::factory()->count(2)->create(['role' => 'dps', 'jackpot' => 0]);
Card::factory()->count(2)->create(['role' => 'tank', 'jackpot' => 0]);
Card::factory()->count(2)->create(['class' => 'priest']);
Card::factory()->count(2)->create(['class' => 'warrior']);
Card::factory()->count(2)->create(['class' => 'priest', 'jackpot' => 0]);
Card::factory()->count(2)->create(['class' => 'warrior', 'jackpot' => 0]);
Card::factory()->count(2)->create();
Card::factory()->count(2)->create(['jackpot' => 0]);
$this->raids = $raids->pluck('id');
$this->characters = $characters->pluck('id');