mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Fixed broken example tests
This commit is contained in:
18
tests/api/GetUsersBasicEmailFieldsCept.php
Normal file
18
tests/api/GetUsersBasicEmailFieldsCept.php
Normal 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'
|
||||
]
|
||||
]);
|
||||
Reference in New Issue
Block a user