mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-20 05:29:29 +00:00
Tests
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user