tests/Feature/Models/CardTest.php: Important that we create test cards with jackpot = 0.
This commit is contained in:
parent
5ea912137b
commit
0a80dbeb5e
1 changed files with 9 additions and 9 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue