mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Moved existing functional tests into resource server folder
This commit is contained in:
18
tests/resourceServer/GetUsersBasicPhotoFieldsCept.php
Normal file
18
tests/resourceServer/GetUsersBasicPhotoFieldsCept.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
$I = new ResourceServerTester($scenario);
|
||||
$I->wantTo('get all users with basic and photo fields');
|
||||
$I->sendGET('api.php/users?access_token=iamalex');
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson([
|
||||
[
|
||||
'username' => 'alexbilbie',
|
||||
'name' => 'Alex Bilbie',
|
||||
'photo' => 'https://s.gravatar.com/avatar/14902eb1dac66b8458ebbb481d80f0a3'
|
||||
],
|
||||
[
|
||||
'username' => 'philsturgeon',
|
||||
'name' => 'Phil Sturgeon',
|
||||
'photo' => 'https://s.gravatar.com/avatar/14df293d6c5cd6f05996dfc606a6a951'
|
||||
]
|
||||
]);
|
||||
Reference in New Issue
Block a user