Created
September 14, 2016 05:34
-
-
Save kamaulynder/02dafde1199cfc1f6d8ee319baf2577c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -15,9 +15,14 @@ class UserCest | |
| $I->sendGET($this->endpoint); | |
| $I->seeResponseCodeIs(200); | |
| $I->seeResponseIsJson(); | |
| - $I->seeResponseContainsJson(['name' => 'Test user','email' => 'test@ushahidi.com']); | |
| - $I->seeResponseContainsJson(['name' => 'Admin user','email' => 'admin@ushahidi.com']); | |
| - | |
| + $I->seeResponseContainsJson([ | |
| + ['name' => 'Test User', | |
| + 'email' => 'test@ushahidi.com' | |
| + ], | |
| + ['name' => 'Admin User', | |
| + 'email' => 'admin@ushahidi.com' | |
| + ] | |
| + ]); | |
| } | |
| /* | |
| @@ -46,8 +51,11 @@ class UserCest | |
| $I->sendGET($this->endpoint."/$id"); | |
| $I->seeResponseCodeIs(200); | |
| $I->seeResponseIsJson(); | |
| - $I->seeResponseContainsJson(['name' => 'Test user']); | |
| - | |
| + $I->seeResponseContainsJson([ | |
| + ['name' => 'Test User', | |
| + 'email' => 'test@ushahidi.com' | |
| + ] | |
| + ]); | |
| } | |
| /* | |
| @@ -80,7 +88,11 @@ class UserCest | |
| ]); | |
| $I->seeResponseCodeIs(200); | |
| $I->seeResponseIsJson(); | |
| - $I->seeResponseContainsJson(['name' => 'Nat Manning']); | |
| + $I->seeResponseContainsJson([ | |
| + ['name' => 'Nat Manning', | |
| + 'email' => 'nat@ushahidi.com' | |
| + ] | |
| + ]); | |
| } | |
| /* | |
| @@ -102,8 +114,9 @@ class UserCest | |
| $I->seeResponseCodeIs(200); | |
| $I->seeResponseIsJson(); | |
| $I->seeResponseContainsJson([ | |
| - 'name' => 'Team RollCall', | |
| - 'email' => 'rollcall@ushahidi.com', | |
| + ['name' => 'Team RollCall', | |
| + 'email' => 'rollcall@ushahidi.com' | |
| + ] | |
| ]); | |
| } | |
| @@ -120,5 +133,5 @@ class UserCest | |
| $I->sendDelete($this->endpoint."/$id"); | |
| $I->seeResponseCodeIs(200); | |
| } | |
| - | |
| + | |
| } | |
| (END) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment