seed(); $this->post('/admin/login', [ 'email' => 'platform.admin@demo.local', 'password' => 'Platform@123456', ])->assertRedirect('/admin'); } public function test_batch_show_page_should_render_error_when_type_or_run_id_missing(): void { $this->loginAsPlatformAdmin(); $html = $this->get('/admin/platform-batches/show?type=bas') ->assertOk() ->getContent(); $this->assertStringContainsString('参数不完整:请提供 type(bas/bmpa)与 run_id。', $html); $this->assertStringContainsString('href="/admin/platform-orders"', $html); $this->assertStringNotContainsString('data-action="copy-run-id"', $html); $this->assertStringNotContainsString('data-role="batch-spot-check-link"', $html); } }