Files
FHC-Core/tests/codeception/tests/api/v1/AbgabeCept.php
T
2016-07-25 17:21:39 +02:00

11 lines
369 B
PHP

<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Abgabe/Abgabe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Abgabe/Abgabe", array("abgabe_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);