SiteSubscription index: refine renewal entry copy and align tests

This commit is contained in:
萝卜
2026-03-15 02:47:55 +00:00
parent df416da7f8
commit 9872296968
3 changed files with 7 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ class AdminSiteSubscriptionIndexCreateRenewalOrderKeepsFiltersShouldCarryRequire
$res->assertOk();
$res->assertSee('创建续费单(带当前筛选', false);
$res->assertSee('续费单(先选订阅', false);
$res->assertSee('require_subscription=1', false);
}
}

View File

@@ -29,7 +29,7 @@ class AdminSiteSubscriptionIndexExpiryGovernanceRenewalCtaTest extends TestCase
$res->assertSee('创建续费订单(当前集合)');
// CTA 应带上当前筛选 merchant_id/plan_id并且 back 回到当前列表selfWithoutBack
$res->assertSee('href="/admin/platform-orders/create?order_type=renewal&merchant_id=2&plan_id=3&back=%2Fadmin%2Fsite-subscriptions%3Fexpiry%3Dexpiring_7d%26merchant_id%3D2%26plan_id%3D3"', false);
$res->assertSee('href="/admin/platform-orders/create?order_type=renewal&require_subscription=1&merchant_id=2&plan_id=3&back=%2Fadmin%2Fsite-subscriptions%3Fexpiry%3Dexpiring_7d%26merchant_id%3D2%26plan_id%3D3"', false);
// 链接不应出现 &(只检查该 CTA 的 href 文本中不含 &
$html = (string) $res->getContent();