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/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]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Ablauf/Ablauf");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Ablauf/Ablauf", array("ablauf_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Abschlussbeurteilung/Abschlussbeurteilung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Abschlussbeurteilung/Abschlussbeurteilung", array("abschlussbeurteilung_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Abschlusspruefung/Abschlusspruefung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Abschlusspruefung/Abschlusspruefung", array("abschlusspruefung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Adresse/Adresse");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Adresse/Adresse", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Akadgrad/Akadgrad");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Akadgrad/Akadgrad", array("akadgrad_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Akte/Akte");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Akte/Akte", array("akte_id" => "0", "person_id" => "0", "dokument_kurzbz" => "0", "stg_kz" => "0", "prestudent_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/project/Aktivitaet/Aktivitaet");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/project/Aktivitaet/Aktivitaet", array("aktivitaet_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Ampel/Ampel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Ampel/Ampel", array("ampel_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Anrechnung/Anrechnung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Anrechnung/Anrechnung", array("anrechnung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Antwort/Antwort");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Antwort/Antwort", array("antwort_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Anwesenheit/Anwesenheit");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Anwesenheit/Anwesenheit", array("anwesenheit_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Appdaten/Appdaten");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Appdaten/Appdaten", array("appdaten_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Archiv/Archiv");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Archiv/Archiv", array("archiv_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Aufmerksamdurch/Aufmerksamdurch");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Aufmerksamdurch/Aufmerksamdurch", array("aufmerksamdurch_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Aufnahmeschluessel/Aufnahmeschluessel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Aufnahmeschluessel/Aufnahmeschluessel", array("aufnahmeschluessel" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Aufnahmetermin/Aufnahmetermin");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Aufnahmetermin/Aufnahmetermin", array("aufnahmetermin_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Aufnahmetermintyp/Aufnahmetermintyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Aufnahmetermintyp/Aufnahmetermintyp", array("aufnahmetermintyp_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Aufteilung/Aufteilung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Aufteilung/Aufteilung", array("aufteilung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/project/Aufwandstyp/Aufwandstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/project/Aufwandstyp/Aufwandstyp", array("aufwandstyp_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Ausbildung/Ausbildung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Ausbildung/Ausbildung", array("ausbildungcode" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Bankverbindung/Bankverbindung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Bankverbindung/Bankverbindung", array("bankverbindung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Beispiel/Beispiel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Beispiel/Beispiel", array("beispiel_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Benutzer/Benutzer");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Benutzer/Benutzer", array("uid" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Benutzerfunktion/Benutzerfunktion");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Benutzerfunktion/Benutzerfunktion", array("benutzerfunktion_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Benutzergruppe/Benutzergruppe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Benutzergruppe/Benutzergruppe", array("gruppe_kurzbz" => "0", "uid" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Benutzerrolle/Benutzerrolle");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Benutzerrolle/Benutzerrolle", array("benutzerrolle_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Berechtigung/Berechtigung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Berechtigung/Berechtigung", array("berechtigung_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Berufstaetigkeit/Berufstaetigkeit");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Berufstaetigkeit/Berufstaetigkeit", array("berufstaetigkeit_code" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Beschaeftigungsausmass/Beschaeftigungsausmass");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Beschaeftigungsausmass/Beschaeftigungsausmass", array("beschausmasscode" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Besqual/Besqual");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Besqual/Besqual", array("besqualcode" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestelldetail/Bestelldetail");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestelldetail/Bestelldetail", array("bestelldetail_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestelldetailtag/Bestelldetailtag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestelldetailtag/Bestelldetailtag", array("bestelldetail_id" => "0", "tag" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestellstatus/Bestellstatus");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestellstatus/Bestellstatus", array("bestellstatus_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestellung/Bestellung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestellung/Bestellung", array("bestellung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestellungtag/Bestellungtag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestellungtag/Bestellungtag", array("bestellung_id" => "0", "tag" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Betreuerart/Betreuerart");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Betreuerart/Betreuerart", array("betreuerart_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Betriebsmittel/Betriebsmittel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Betriebsmittel/Betriebsmittel", array("betriebsmittel_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Betriebsmittelperson2/Betriebsmittelperson2");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Betriebsmittelperson2/Betriebsmittelperson2", array("betriebsmittelperson_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Betriebsmittelstatus/Betriebsmittelstatus");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Betriebsmittelstatus/Betriebsmittelstatus", array("betriebsmittelstatus_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Betriebsmitteltyp/Betriebsmitteltyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Betriebsmitteltyp/Betriebsmitteltyp", array("betriebsmitteltyp" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Bewerbungstermine/Bewerbungstermine");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Bewerbungstermine/Bewerbungstermine", array("bewerbungstermine_id" => "0", "studiengang_kz" => "0", "studiensemester_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisfunktion/Bisfunktion");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisfunktion/Bisfunktion", array("studiengang_kz" => "0", "bisverwendung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisio/Bisio");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisio/Bisio", array("bisio_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisorgform/Bisorgform");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisorgform/Bisorgform", array("bisorgform_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisverwendung/Bisverwendung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisverwendung/Bisverwendung", array("bisverwendung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Buchung/Buchung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Buchung/Buchung", array("buchung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Buchungstyp/Buchungstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Buchungstyp/Buchungstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Budget/Budget");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Budget/Budget", array("kostenstelle_id" => "0", "geschaeftsjahr_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call TO_BE_REPLACED_NAME");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("TO_BE_REPLACED_NAME", array(TO_BE_REPLACED_PARAMETERS));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Content/Content");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Content/Content", array("content_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentchild/Contentchild");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentchild/Contentchild", array("contentchild_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentgruppe/Contentgruppe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentgruppe/Contentgruppe", array("gruppe_kurzbz" => "0", "content_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentlog/Contentlog");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentlog/Contentlog", array("contentlog_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentsprache/Contentsprache");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentsprache/Contentsprache", array("contentsprache_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Coodle/Coodle");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Coodle/Coodle", array("coodle_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Cronjob/Cronjob");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Cronjob/Cronjob", array("cronjob_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Dokument/Dokument");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Dokument/Dokument", array("dokument_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Dokumentprestudent/Dokumentprestudent");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Dokumentprestudent/Dokumentprestudent", array("prestudent_id" => "0", "dokument_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -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]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Entwicklungsteam/Entwicklungsteam");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Entwicklungsteam/Entwicklungsteam", array("studiengang_kz" => "0", "mitarbeiter_uid" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/organisation/Erhalter/Erhalter");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/organisation/Erhalter/Erhalter", array("erhalter_kz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Erreichbarkeit/Erreichbarkeit");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Erreichbarkeit/Erreichbarkeit", array("erreichbarkeit_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/organisation/Fachbereich2/Fachbereich2");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/organisation/Fachbereich2/Fachbereich2", array("fachbereich_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Feedback/Feedback");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Feedback/Feedback", array("feedback_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/organisation/Ferien/Ferien");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/organisation/Ferien/Ferien", array("studiengang_kz" => "0", "bezeichnung" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Filter/Filter");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Filter/Filter", array("filter_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Firma/Firma");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Firma/Firma", array("firma_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Firmatag/Firmatag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Firmatag/Firmatag", array("tag" => "0", "firma_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Firmentyp/Firmentyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Firmentyp/Firmentyp", array("firmentyp_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Fotostatus/Fotostatus");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Fotostatus/Fotostatus", array("fotostatus_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Frage/Frage");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Frage/Frage", array("frage_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Freebusy/Freebusy");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Freebusy/Freebusy", array("freebusy_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Freebusytyp/Freebusytyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Freebusytyp/Freebusytyp", array("freebusytyp_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Funktion/Funktion");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Funktion/Funktion", array("funktion_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Gebiet/Gebiet");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Gebiet/Gebiet", array("gebiet_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Gemeinde/Gemeinde");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Gemeinde/Gemeinde", array("gemeinde_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/organisation/Geschaeftsjahr2/Geschaeftsjahr2");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/organisation/Geschaeftsjahr2/Geschaeftsjahr2", array("geschaeftsjahr_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/organisation/Gruppe/Gruppe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/organisation/Gruppe/Gruppe", array("gruppe_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Hauptberuf/Hauptberuf");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Hauptberuf/Hauptberuf", array("hauptberufcode" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Infoscreen/Infoscreen");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Infoscreen/Infoscreen", array("infoscreen_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Kategorie/Kategorie");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Kategorie/Kategorie", array("kategorie_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Kontakt/Kontakt");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Kontakt/Kontakt", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Kontaktmedium/Kontaktmedium");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Kontaktmedium/Kontaktmedium", array("kontaktmedium_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Kontakttyp/Kontakttyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Kontakttyp/Kontakttyp", array("kontakttyp" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Konto/Konto");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Konto/Konto", array("konto_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Konto/Konto");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Konto/Konto", array("buchungsnr" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Kostenstelle/Kostenstelle");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Kostenstelle/Kostenstelle", array("kostenstelle_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Kriterien/Kriterien");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Kriterien/Kriterien", array("kriterien_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/LeNotenschluessel/LeNotenschluessel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/LeNotenschluessel/LeNotenschluessel", array("note" => "0", "lehreinheit_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/LePruefung/LePruefung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/LePruefung/LePruefung", array("lepruefung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Legesamtnote/Legesamtnote");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Legesamtnote/Legesamtnote", array("lehreinheit_id" => "0", "student_uid" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Lehreinheit/Lehreinheit");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Lehreinheit/Lehreinheit", array("lehreinheit_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Lehreinheitgruppe/Lehreinheitgruppe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Lehreinheitgruppe/Lehreinheitgruppe", array("lehreinheitgruppe_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Lehreinheitmitarbeiter/Lehreinheitmitarbeiter");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Lehreinheitmitarbeiter/Lehreinheitmitarbeiter", array("mitarbeiter_uid" => "0", "lehreinheit_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Lehrfach/Lehrfach");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Lehrfach/Lehrfach", array("lehrfach_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Lehrform/Lehrform");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Lehrform/Lehrform", array("lehrform_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/Lehrfunktion/Lehrfunktion");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/Lehrfunktion/Lehrfunktion", array("lehrfunktion_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Lehrmittel/Lehrmittel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Lehrmittel/Lehrmittel", array("lehrmittel_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);

Some files were not shown because too many files have changed in this diff Show More