Files
FHC-Core/tests/codeception/tests/api/v1/EducationLvgesamtnoteCept.php
T
bison-paolo d96a0e98d5 - Fixed codeception test
- Updated the api test suite
- Added the script generate.php to automatically generate the test cases
for the controllers
2016-11-23 15:09:10 +01:00

12 lines
473 B
PHP

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