From 17f5d7dfd3bba64b2f8cccb7c8f36888fc45b280 Mon Sep 17 00:00:00 2001 From: limeng <1131177064@qq.com> Date: Fri, 27 Nov 2026 05:37:50 +0000 Subject: [PATCH] =?UTF-8?q?test(=E7=A7=8D=E8=8F=9C=E6=8A=A5=E9=94=80):=20?= =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E4=B8=8A=E4=BC=A0=E8=B7=AF=E7=94=B1=E5=B7=B2?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=EF=BC=8C=E6=96=AD=E8=A8=80=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UNTa9ohkCsVFACqjz3KMcG --- tests/Feature/Business/PlantingReimbursementWorkbenchTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Business/PlantingReimbursementWorkbenchTest.php b/tests/Feature/Business/PlantingReimbursementWorkbenchTest.php index 106d9fc5..d99076a5 100644 --- a/tests/Feature/Business/PlantingReimbursementWorkbenchTest.php +++ b/tests/Feature/Business/PlantingReimbursementWorkbenchTest.php @@ -164,7 +164,8 @@ class PlantingReimbursementWorkbenchTest extends FeatureTestCase $this->upload('commission', 'x.csv', "a,b\n1,2\n")->assertRedirect()->assertSessionHas('error'); // 看板、店铺信息不再上传。 - $this->withExceptionHandling()->upload('monitor', 'x.csv', "a,b\n1,2\n")->assertNotFound(); + $status = $this->withExceptionHandling()->upload('monitor', 'x.csv', "a,b\n1,2\n")->status(); + $this->assertContains($status, [404, 405]); $this->upload('roster', 'x.txt', "姓名\n张三\n")->assertRedirect()->assertSessionHas('error'); }