2014-05-10 16:24:11 +05:30
|
|
|
<?php
|
2014-07-22 15:28:15 +05:30
|
|
|
$I = new ApiTester($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();
|