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

7 lines
173 B
PHP

<?php
$I = new ApiTester($scenario);
$I->wantTo('get all users without an access token');
$I->sendGET('api.php/users');
$I->seeResponseCodeIs(400);
$I->seeResponseIsJson();