test(种菜报销): 看板上传路由已移除,断言不再可用即可

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNTa9ohkCsVFACqjz3KMcG
This commit is contained in:
limeng 2026-11-27 05:37:50 +00:00
parent cc40d9dcfe
commit 17f5d7dfd3

View File

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