2014-05-10 11:54:11 +01:00
|
|
|
<?php
|
2014-07-22 10:58:15 +01:00
|
|
|
$I = new ApiTester($scenario);
|
2014-05-10 11:54:11 +01:00
|
|
|
$I->wantTo('get all users with an invalid access token');
|
|
|
|
$I->sendGET('api.php/users?access_token=foobar');
|
|
|
|
$I->seeResponseCodeIs(401);
|
|
|
|
$I->seeResponseIsJson();
|