DoSomething / gladiator

:guardsman: The DoSomething.org competitions platform.
2 stars 0 forks source link

User API tests #402

Open sbsmith86 opened 7 years ago

sbsmith86 commented 7 years ago

in UserAPITest.php update the tests to properly test the updates to the GET /users api endpoint

Test 1: testUserApiReturnsResponse()

Assert that when you hit GET /api/v1/users you get a 200 response.

Test 2: testUserApiReturnsUsers()

Assert that the response returns a valid set of users.

Test 3: testGetUserInContest()

Assert that when you pass northstar_id , campaign_id, and campaign_run_id parameters to the GET /users endpoint you get get correct user and the waiting room or competition they are in for that contests.