This commit is contained in:
Paminger
2016-04-25 14:25:09 +02:00
parent f154e6dd5d
commit ecff3747d0
10 changed files with 14 additions and 13 deletions
+2 -2
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("wu11e001", "1Q2W3E4R");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
$I->sendGET('Test/test');
$I->seeResponseCodeIs(200);
@@ -16,4 +16,4 @@ $I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => true,
'message' => 'API HTTP POST call test succeed']);
'message' => 'API HTTP POST call test succeed']);