chore(admin-ui): pagination links no-underline; fix platform order syncable test seed
This commit is contained in:
@@ -360,9 +360,27 @@ class AdminPlatformOrderTest extends TestCase
|
||||
->assertDontSee('PO202603100102');
|
||||
|
||||
// 只看可同步:已支付 + 已生效 + 未同步
|
||||
// 注意:为避免“续费但未绑定订阅”的脏数据被误判为可同步集合,业务逻辑会排除 renewal 且 site_subscription_id 为空的订单。
|
||||
// 因此这里必须构造一条已绑定订阅的续费订单。
|
||||
$syncableSub = \App\Models\SiteSubscription::query()->create([
|
||||
'merchant_id' => $merchant->id,
|
||||
'plan_id' => $plan->id,
|
||||
'status' => 'activated',
|
||||
'source' => 'manual',
|
||||
'subscription_no' => 'SUB_SYNCABLE_0001',
|
||||
'plan_name' => $plan->name,
|
||||
'billing_cycle' => 'monthly',
|
||||
'period_months' => 1,
|
||||
'amount' => 199,
|
||||
'starts_at' => now()->subDay(),
|
||||
'ends_at' => now()->addMonth(),
|
||||
'activated_at' => now()->subDay(),
|
||||
]);
|
||||
|
||||
PlatformOrder::query()->create([
|
||||
'merchant_id' => $merchant->id,
|
||||
'plan_id' => $plan->id,
|
||||
'site_subscription_id' => $syncableSub->id,
|
||||
'order_no' => 'PO202603100106',
|
||||
'order_type' => 'renewal',
|
||||
'status' => 'activated',
|
||||
|
||||
Reference in New Issue
Block a user