Created all basic test cases for codeception

This commit is contained in:
paolo
2016-07-25 17:21:39 +02:00
parent 150a7863d6
commit d0d9b897eb
211 changed files with 2321 additions and 0 deletions
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Dokumentstudiengang/Dokumentstudiengang");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Dokumentstudiengang/Dokumentstudiengang", array("studiengang_kz" => "0", "dokument_kurzbz" => "0", "studiengang_kz" => "0", "onlinebewerbung" => "0", "pflicht" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);