From 6e54c8047c91dd33373266a6b5230354b70c8798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sun, 15 Mar 2026 03:49:21 +0000 Subject: [PATCH] =?UTF-8?q?=E7=BB=AD=E8=B4=B9=E4=B8=8B=E5=8D=95=20end2end?= =?UTF-8?q?=20=E6=B5=81=E7=A8=8B=E6=B5=8B=E8=AF=95=E8=A1=A5=E9=BD=90=20req?= =?UTF-8?q?uire=5Fsubscription=3D1=20=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...scriptionRenewalCreatePlatformOrderEndToEndBackFlowTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Feature/AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest.php b/tests/Feature/AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest.php index 100537d..90c885e 100644 --- a/tests/Feature/AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest.php +++ b/tests/Feature/AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest.php @@ -60,6 +60,8 @@ class AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest extends Te // 订阅详情页的“创建续费订单”链接 back 应该回到订阅详情自身 $expectedBack = '/admin/site-subscriptions/' . $sub->id; $subShow->assertSee('back=' . urlencode($expectedBack), false); + $subShow->assertSee('order_type=renewal', false); + $subShow->assertSee('require_subscription=1', false); // 2) 打开创建页(携带默认值 + back) $createUrl = '/admin/platform-orders/create?' @@ -67,6 +69,7 @@ class AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest extends Te . '&plan_id=' . $plan->id . '&site_subscription_id=' . $sub->id . '&order_type=renewal' + . '&require_subscription=1' . '&quantity=1' . '&remark=' . urlencode('来自订阅:' . $sub->subscription_no) . '&back=' . urlencode($expectedBack);