mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 00:54:27 +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', '[email protected]');
|
||||
$I->sendGET('AuthAPI/login?username=pam&password=1q2w3&FHC-API-KEY=[email protected]');
|
||||
//$I->haveHttpHeader('username', '[email protected]');
|
||||
//$I->haveHttpHeader('password', '[email protected]');
|
||||
$I->sendPOST('AuthAPI/login?username=admin&password=1q2w3');
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson([
|
||||
|
||||
Reference in New Issue
Block a user