oauth2-server/tests/resourceServer/GetUsersInvalidTokenCept.php

7 lines
209 B
PHP

<?php
$I = new ResourceServerTester($scenario);
$I->wantTo('get all users with an invalid access token');
$I->sendGET('api.php/users?access_token=foobar');
$I->seeResponseCodeIs(401);
$I->seeResponseIsJson();