Files
FHC-Core/tests/codeception/tests/api/v1/UebungCept.php
T
bison-paolo 2a0cd525dd - Updated codeception test cases
- Fixed controllers
- Removed unused controller Thread
2016-11-15 17:00:01 +01:00

12 lines
381 B
PHP

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