SiteSubscription index: refine renewal entry copy and align tests
This commit is contained in:
@@ -32,7 +32,7 @@ class AdminSiteSubscriptionIndexCreateRenewalOrderKeepsFiltersShouldCarryRequire
|
||||
|
||||
$res->assertOk();
|
||||
|
||||
$res->assertSee('创建续费订单(带当前筛选)', false);
|
||||
$res->assertSee('续费下单(先选订阅)', false);
|
||||
$res->assertSee('require_subscription=1', false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user