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:
6
tests/api/GetUsersInvalidTokenCept.php
Normal file
6
tests/api/GetUsersInvalidTokenCept.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo('get all users with an invalid access token');
|
||||
$I->sendGET('api.php/users?access_token=foobar');
|
||||
$I->seeResponseCodeIs(401);
|
||||
$I->seeResponseIsJson();
|
||||
Reference in New Issue
Block a user