Codeception

This commit is contained in:
paolo
2016-04-27 11:46:29 +02:00
parent 932d48d95b
commit 51774021b4
5 changed files with 107 additions and 139 deletions
+3 -3
View File
@@ -4,21 +4,21 @@ $I = new ApiTester($scenario);
$I->wantTo('Test API call v1/person/person/Person');
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
$I->sendGET('v1/person/person/Person', array('person_id' => 62788));
$I->sendGET('v1/person/person/Person', array('person_id' => 3));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => TRUE,
'message' => 'Person found']);
$I->sendGET('v1/person/person/Person', array('code' => 'bd94ef5d5a'));
$I->sendGET('v1/person/person/Person', array('code' => '01234567A'));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => TRUE,
'message' => 'Person found']);
$I->sendGET('v1/person/person/Person', array('code' => 'bd94ef5d5a', 'email' => '12351235'));
$I->sendGET('v1/person/person/Person', array('code' => '01234567A', 'email' => 'mckenzie.vicenta@calva.dev'));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([