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'); }