From 195170c3504d7f5879654d61a9fae179dc67c533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Fri, 13 Mar 2026 14:35:13 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=E9=94=81=E5=AE=9A=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E9=80=8F=E4=BC=A0=E8=BF=9124=E5=B0=8F?= =?UTF-8?q?=E6=97=B6=E6=89=B9=E9=87=8FBMPA=E7=AD=9B=E9=80=89=E5=8F=A3?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...OrderExportKeepsBatchBmpa24hFilterTest.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php diff --git a/tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php b/tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php new file mode 100644 index 0000000..9d46724 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_export_form_keeps_batch_mark_paid_and_activate_24h_filter_value(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?batch_mark_paid_and_activate_24h=1'); + $res->assertOk(); + + // 导出表单应透传当前筛选口径,避免“列表筛选已生效但导出漏口径” + $res->assertSee('
assertSee('', false); + } +}