seedApiTestConfig(); } public function test_process_requires_a_badge_code(): void { $this->postJson('/api/v1/scanner/process', ['badgeCode' => '']) ->assertStatus(400) ->assertJsonPath('status', false) ->assertJsonPath('ok', false); } public function test_process_returns_404_for_unknown_badge(): void { $this->postJson('/api/v1/scanner/process', ['badgeCode' => 'NO-SUCH-BADGE']) ->assertNotFound() ->assertJsonPath('status', false) ->assertJsonPath('ok', false); } public function test_process_accepts_alternative_badge_field_names(): void { $this->postJson('/api/v1/scanner/process', ['barcode' => 'STILL-UNKNOWN']) ->assertNotFound() ->assertJsonPath('status', false); } }