oauth2-server/tests/resourceServer/GetUsersInvalidTokenCept.php

7 lines
209 B
PHP
Raw Normal View History

2014-05-10 16:24:11 +05:30
<?php
$I = new ResourceServerTester($scenario);
2014-05-10 16:24:11 +05:30
$I->wantTo('get all users with an invalid access token');
$I->sendGET('api.php/users?access_token=foobar');
$I->seeResponseCodeIs(401);
$I->seeResponseIsJson();