升级 laravel12 补丁
This commit is contained in:
Generated
+352
-344
File diff suppressed because it is too large
Load Diff
@@ -156,6 +156,17 @@ class BaccaratLossCoverControllerTest extends TestCase
|
||||
'claim_status' => 'pending',
|
||||
]);
|
||||
|
||||
// 额外保留一条待领取记录,确保当前用户领取后活动仍处于 claimable,
|
||||
// 从而广播消息继续携带“领取补偿”按钮。
|
||||
BaccaratLossCoverRecord::factory()->create([
|
||||
'event_id' => $event->id,
|
||||
'user_id' => User::factory()->create()->id,
|
||||
'total_bet_amount' => 800,
|
||||
'total_loss_amount' => 200,
|
||||
'compensation_amount' => 200,
|
||||
'claim_status' => 'pending',
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($user)->postJson(route('baccarat-loss-cover.claim', $event));
|
||||
|
||||
$response->assertOk()->assertJson([
|
||||
|
||||
Reference in New Issue
Block a user