<?php

$I = new ApiGuy($scenario);
$I->wantTo('Resend activation code');
$I->sendPUT('/auth/activate', array('email' => '*****@*****.**'));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
示例#2
0
<?php

$I = new ApiGuy($scenario);
$I->wantTo('perform actions and see result');
$I->haveHttpHeader('Content-Type', 'application/json');
include 'loginCept.php';
$I->amBearerAuthenticated($token);
include 'constant.php';
$I->sendPUT('/user/profile', array('username' => $new_username));
示例#3
0
<?php

$I = new ApiGuy($scenario);
$I->wantTo('perform actions and see result');
$I->sendPUT('/auth/reset-password', array('email' => '*****@*****.**'));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();