From 82dd58a8c5c4d5e70910d51ed640f18e732af27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 11 Mar 2026 08:17:04 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=9A=E6=B2=BB=E7=90=86SOP=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dminPlatformOrderGovernanceSopCardTest.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderGovernanceSopCardTest.php diff --git a/tests/Feature/AdminPlatformOrderGovernanceSopCardTest.php b/tests/Feature/AdminPlatformOrderGovernanceSopCardTest.php new file mode 100644 index 0000000..5776227 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderGovernanceSopCardTest.php @@ -0,0 +1,36 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_shows_governance_sop_card_and_links(): void + { + $this->loginAsPlatformAdmin(); + + $this->get('/admin/platform-orders?plan_id=123&page=2') + ->assertOk() + ->assertSee('治理顺序建议(SOP)') + // 链接需保留筛选上下文 plan_id=123,且清空 page + ->assertSee('plan_id=123', false) + ->assertSee('reconcile_mismatch=1', false) + ->assertSee('refund_inconsistent=1', false) + ->assertSee('syncable_only=1', false) + ->assertDontSee('page=2', false); + } +}