refactor(site-subscriptions): hide renew tool link in attach mode

This commit is contained in:
萝卜
2026-03-16 11:25:53 +08:00
parent 22efadd74b
commit bc7300d61b
2 changed files with 8 additions and 1 deletions

View File

@@ -61,6 +61,10 @@ class AdminSiteSubscriptionIndexAttachOrderIdShouldRenderBindButtonTest extends
$res->assertOk();
$html = (string) $res->getContent();
// 去重降噪:处于 attach_order_id 模式时,不应出现“续费下单(先选订阅)”工具入口
$this->assertStringNotContainsString('续费下单(先选订阅)', $html);
$this->assertStringContainsString('绑定到订单 #' . $orderId, $html);
$this->assertStringContainsString('/admin/platform-orders/' . $orderId . '/attach-subscription', $html);
$this->assertStringContainsString('name="site_subscription_id" value="' . $sub->id . '"', $html);