From ba7f43fef8b42167c4eb94ef8b486cd82d8caa93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 00:02:32 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=A1=8C=E7=BA=A7BMPA=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=9C=A8=E7=BB=AD=E8=B4=B9=E7=BC=BA=E8=AE=A2=E9=98=85=E6=97=B6?= =?UTF-8?q?=E5=BA=94=E7=A6=81=E7=94=A8=EF=BC=88=E5=B9=B6=E5=8F=AF=E5=BC=95?= =?UTF-8?q?=E5=AF=BC=E5=85=B3=E8=81=94=E8=AE=A2=E9=98=85=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ButtonShouldDisableWhenRenewalMissingSubscriptionTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }