postJson('/api/login',[ 'email'=>'admin@hydra.project', 'password'=>'hydrax' ]); $response ->assertJson(fn (AssertableJson $json) => $json->where('error', 1) ->missing('token') ->has('message') ); } }