mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			691 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			691 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
$I = new ResourceServerTester($scenario);
 | 
						|
$I->wantTo('get all users with all fields');
 | 
						|
$I->sendGET('api.php/users?access_token=iamgod');
 | 
						|
$I->seeResponseCodeIs(200);
 | 
						|
$I->seeResponseIsJson();
 | 
						|
$I->seeResponseContainsJson([
 | 
						|
    [
 | 
						|
        'username'  =>  'alexbilbie',
 | 
						|
        'name'      =>  'Alex Bilbie',
 | 
						|
        'email'     =>  'hello@alexbilbie.com',
 | 
						|
        'photo'     =>  'https://s.gravatar.com/avatar/14902eb1dac66b8458ebbb481d80f0a3'
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        'username'  =>  'philsturgeon',
 | 
						|
        'name'      =>  'Phil Sturgeon',
 | 
						|
        'email'     =>  'email@philsturgeon.co.uk',
 | 
						|
        'photo'     =>  'https://s.gravatar.com/avatar/14df293d6c5cd6f05996dfc606a6a951'
 | 
						|
    ]
 | 
						|
]);
 |