优化 游戏金币余额显示
This commit is contained in:
@@ -36,7 +36,7 @@ class BaccaratControllerTest extends TestCase
|
||||
public function test_can_get_current_round()
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
$user = User::factory()->create();
|
||||
$user = User::factory()->create(['jjb' => 3456]);
|
||||
|
||||
$round = BaccaratRound::forceCreate([
|
||||
'status' => 'betting',
|
||||
@@ -57,6 +57,7 @@ class BaccaratControllerTest extends TestCase
|
||||
$response->assertStatus(200);
|
||||
$response->assertJsonStructure(['round' => ['id', 'status', 'bet_closes_at']]);
|
||||
$this->assertEquals($round->id, $response->json('round.id'));
|
||||
$this->assertSame(3456, $response->json('jjb'));
|
||||
}
|
||||
|
||||
public function test_can_bet()
|
||||
|
||||
@@ -60,7 +60,7 @@ class HorseRaceControllerTest extends TestCase
|
||||
public function test_can_get_current_race()
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
$user = User::factory()->create();
|
||||
$user = User::factory()->create(['jjb' => 4567]);
|
||||
|
||||
$race = HorseRace::create([
|
||||
'status' => 'betting',
|
||||
@@ -79,6 +79,7 @@ class HorseRaceControllerTest extends TestCase
|
||||
$response->assertStatus(200);
|
||||
$response->assertJsonStructure(['race' => ['id', 'status', 'bet_closes_at', 'horses']]);
|
||||
$this->assertEquals($race->id, $response->json('race.id'));
|
||||
$this->assertSame(4567, $response->json('jjb'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user