Files
FHC-Core/tests/codeception/api/LoginCept.php
T
Paminger c124348484 Message
2016-04-05 09:36:24 +02:00

12 lines
400 B
PHP

<?php
$I = new ApiTester($scenario);
$I->wantTo('test the Login API');
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
$I->sendGET('/userauth/login/username/codeception%40whisperocity.com/password/secret/device_id/abcdef123');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => true,
'message' => 'User successfully logged in']);