<?php $I = new ApiGuy($scenario); $I->wantTo('Resend activation code'); $I->sendPUT('/auth/activate', array('email' => '*****@*****.**')); $I->seeResponseCodeIs(200); $I->seeResponseIsJson();
<?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));
<?php $I = new ApiGuy($scenario); $I->wantTo('perform actions and see result'); $I->sendPUT('/auth/reset-password', array('email' => '*****@*****.**')); $I->seeResponseCodeIs(200); $I->seeResponseIsJson();