From 6f94d23f35bcab4a7923535f181c23eb7eaa7b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Fri, 20 Mar 2026 11:59:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E5=A5=97=E9=A4=90=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E6=B2=BB=E7=90=86=E5=85=A5=E5=8F=A3=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E5=9B=9E=E9=93=BE=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Feature/AdminPlanShowTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Feature/AdminPlanShowTest.php b/tests/Feature/AdminPlanShowTest.php index 59d867f..2af6200 100644 --- a/tests/Feature/AdminPlanShowTest.php +++ b/tests/Feature/AdminPlanShowTest.php @@ -230,15 +230,27 @@ class AdminPlanShowTest extends TestCase $res->assertSee('返回上一页(保留上下文)'); $planShowSelf = '/admin/plans/' . $plan->id; + $expectedOrdersUrl = '/admin/platform-orders?' . Arr::query([ + 'plan_id' => $plan->id, + 'back' => $planShowSelf, + ]); $expectedPaidNoReceiptUrl = '/admin/platform-orders?' . Arr::query([ 'plan_id' => $plan->id, 'payment_status' => 'paid', 'receipt_status' => 'none', 'back' => $planShowSelf, ]); + $expectedRenewalMissingUrl = '/admin/platform-orders?' . Arr::query([ + 'plan_id' => $plan->id, + 'renewal_missing_subscription' => '1', + 'back' => $planShowSelf, + ]); + $res->assertSee($expectedOrdersUrl, false); $res->assertSee($expectedPaidNoReceiptUrl, false); + $res->assertSee($expectedRenewalMissingUrl, false); $res->assertDontSee('back=' . $safeBack, false); + $res->assertDontSee('back%3D', false); } public function test_plan_show_header_actions_should_use_plan_show_self_back_even_when_safe_back_is_present(): void