This commit is contained in:
root
2016-04-13 08:41:09 +02:00
parent ae6740cc32
commit a13b51e02c
4 changed files with 158 additions and 150 deletions
+3 -1
View File
@@ -3,7 +3,9 @@
$I = new ApiTester($scenario);
$I->wantTo('test the Login API');
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
$I->sendGET('AuthAPI/login?username=pam&password=1q2w3&FHC-API-KEY=testapikey@fhcomplete.org');
//$I->haveHttpHeader('username', 'testapikey@fhcomplete.org');
//$I->haveHttpHeader('password', 'testapikey@fhcomplete.org');
$I->sendPOST('AuthAPI/login?username=admin&password=1q2w3');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([