From 113c258672b17a5e3bc6917fb90130c10c8848ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 08:54:53 +0800 Subject: [PATCH] test(platform-orders): rename refund inconsistent fix link guardrail --- ...nconsistentFixLinkShouldPointToRefundSectionTest.php} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename tests/Feature/{AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundReceiptPanelTest.php => AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php} (85%) diff --git a/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundReceiptPanelTest.php b/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php similarity index 85% rename from tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundReceiptPanelTest.php rename to tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php index 886586d..b462e07 100644 --- a/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundReceiptPanelTest.php +++ b/tests/Feature/AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest.php @@ -7,7 +7,7 @@ use App\Models\PlatformOrder; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; -class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundReceiptPanelTest extends TestCase +class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToRefundSectionTest extends TestCase { use RefreshDatabase; @@ -21,7 +21,7 @@ class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundRece ])->assertRedirect('/admin'); } - public function test_index_refund_inconsistent_fix_link_should_point_to_add_refund_receipt_panel(): void + public function test_index_refund_inconsistent_fix_link_should_point_to_refund_section(): void { $this->loginAsPlatformAdmin(); @@ -32,7 +32,7 @@ class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundRece 'merchant_id' => $merchant->id, 'plan_id' => null, 'site_subscription_id' => null, - 'order_no' => 'PO_INDEX_REFUND_INCONSISTENT_FIX_LINK', + 'order_no' => 'PO_INDEX_REFUND_INCONSISTENT_FIX_LINK_2', 'order_type' => 'new_purchase', 'status' => 'pending', 'payment_status' => 'paid', @@ -52,8 +52,7 @@ class AdminPlatformOrderIndexRefundInconsistentFixLinkShouldPointToAddRefundRece $html = (string) $res->getContent(); - // 退款不一致集合里,行内“去核对退款”应锚定到退款区块(#refund-receipts),避免误打开“追加退款记录”面板。 - // 原因:核对退款包含查看轨迹/核对金额/再决定是否追加记录,不等于直接追加。 + // 退款不一致集合里,行内“去核对退款”应锚定到退款区块(#refund-receipts)。 $this->assertStringContainsString('疑似不一致', $html); $this->assertStringContainsString('/admin/platform-orders/' . $order->id, $html); $this->assertStringContainsString('#refund-receipts', $html);