diff --git a/tests/Feature/AdminPlatformOrderIndexRowMarkPaidAndActivateButtonShouldDisableWhenRenewalMissingSubscriptionTest.php b/tests/Feature/AdminPlatformOrderIndexRowMarkPaidAndActivateButtonShouldDisableWhenRenewalMissingSubscriptionTest.php index 1d33c0b..c6008d2 100644 --- a/tests/Feature/AdminPlatformOrderIndexRowMarkPaidAndActivateButtonShouldDisableWhenRenewalMissingSubscriptionTest.php +++ b/tests/Feature/AdminPlatformOrderIndexRowMarkPaidAndActivateButtonShouldDisableWhenRenewalMissingSubscriptionTest.php @@ -38,7 +38,7 @@ class AdminPlatformOrderIndexRowMarkPaidAndActivateButtonShouldDisableWhenRenewa 'published_at' => now(), ]); - // 构造:续费单缺订阅(脏数据),列表页应禁用 BMPA 并给出“去关联订阅”最短治理入口。 + // 构造:续费单缺订阅(脏数据),列表页应禁用 BMPA。 $order = PlatformOrder::query()->create([ 'merchant_id' => $merchant->id, 'plan_id' => $plan->id, @@ -67,7 +67,8 @@ class AdminPlatformOrderIndexRowMarkPaidAndActivateButtonShouldDisableWhenRenewa $pattern = '#/admin/platform-orders/' . $order->id . '/mark-paid-and-activate.*?]*disabled#s'; $this->assertMatchesRegularExpression($pattern, $html); - // 并且应提供最短治理入口(续费缺订阅:去关联订阅) + // 续费缺订阅的治理入口在“同步订阅”阻断提示里(去关联订阅),因此这里断言文案与链接 fragment。 + $this->assertStringContainsString('去关联订阅', $html); $this->assertStringContainsString('#relation-subscription', $html); } }