oauth2-server/tests/api/GetUsersInvalidTokenCept.php
2014-07-22 10:58:15 +01:00

7 lines
198 B
PHP

<?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();