API Calls codeception

Fixed translations
This commit is contained in:
paolo
2016-04-22 14:44:40 +02:00
parent 346b8c82e1
commit f6f533a23b
11 changed files with 85 additions and 15 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
$I = new ApiTester($scenario);
$I->wantTo('Test the HTTP basic autentication whith HTTP GET and POST method and the API Keys');
$I->amHttpAuthenticated("aufname", "1q2w3");
$I->amHttpAuthenticated("wu11e001", "1Q2W3E4R");
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
$I->sendGET('Test/test');
$I->seeResponseCodeIs(200);
@@ -10,6 +10,7 @@ $I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => true,
'message' => 'API HTTP GET call test succeed']);
$I->sendPOST('Test/test');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();