oauth2-server/tests/resourceServer/GetUsersNoTokenCept.php

7 lines
184 B
PHP

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