Fixed broken example tests

This commit is contained in:
Alex Bilbie
2014-07-22 10:58:15 +01:00
parent f40ada9ac7
commit 7067a35d3a
22 changed files with 2160 additions and 2954 deletions

View File

@@ -0,0 +1,18 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo('get all users with all basic and email fields');
$I->sendGET('api.php/users?access_token=iamphil');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
[
'username' => 'alexbilbie',
'name' => 'Alex Bilbie',
'email' => 'hello@alexbilbie.com'
],
[
'username' => 'philsturgeon',
'name' => 'Phil Sturgeon',
'email' => 'email@philsturgeon.co.uk'
]
]);