oauth2-server/tests/api/GetUsersBasicEmailFieldsCept.php

19 lines
517 B
PHP
Raw Normal View History

2014-05-10 16:24:11 +05:30
<?php
2014-07-22 15:28:15 +05:30
$I = new ApiTester($scenario);
2014-05-10 16:24:11 +05:30
$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'
]
]);