Пример #1
0
<?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();