From d0d9b897eba7d2ca23dbadf7a94b65f49ee31e4d Mon Sep 17 00:00:00 2001 From: paolo Date: Mon, 25 Jul 2016 17:21:39 +0200 Subject: [PATCH] Created all basic test cases for codeception --- tests/codeception/tests/api/v1/AbgabeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AblaufCept.php | 11 +++++++++++ .../tests/api/v1/AbschlussbeurteilungCept.php | 11 +++++++++++ .../tests/api/v1/AbschlusspruefungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AdresseCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AkadgradCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AkteCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AktivitaetCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AmpelCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AnrechnungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AntwortCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AnwesenheitCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AppdatenCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ArchivCept.php | 11 +++++++++++ .../codeception/tests/api/v1/AufmerksamdurchCept.php | 11 +++++++++++ .../tests/api/v1/AufnahmeschluesselCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AufnahmeterminCept.php | 11 +++++++++++ .../tests/api/v1/AufnahmetermintypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AufteilungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AufwandstypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/AusbildungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BankverbindungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BeispielCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BenutzerCept.php | 11 +++++++++++ .../codeception/tests/api/v1/BenutzerfunktionCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BenutzergruppeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BenutzerrolleCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BerechtigungCept.php | 11 +++++++++++ .../codeception/tests/api/v1/BerufstaetigkeitCept.php | 11 +++++++++++ .../tests/api/v1/BeschaeftigungsausmassCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BesqualCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BestelldetailCept.php | 11 +++++++++++ .../codeception/tests/api/v1/BestelldetailtagCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BestellstatusCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BestellungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BestellungtagCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BetreuerartCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BetriebsmittelCept.php | 11 +++++++++++ .../tests/api/v1/Betriebsmittelperson2Cept.php | 11 +++++++++++ .../tests/api/v1/BetriebsmittelstatusCept.php | 11 +++++++++++ .../tests/api/v1/BetriebsmitteltypCept.php | 11 +++++++++++ .../tests/api/v1/BewerbungstermineCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BisfunktionCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BisioCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BisorgformCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BisverwendungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BuchungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/Buchungstyp2Cept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BuchungstypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/BudgetCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/CeptTemplate.php | 11 +++++++++++ tests/codeception/tests/api/v1/ContentCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ContentchildCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ContentgruppeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ContentlogCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ContentspracheCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/CoodleCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/CronjobCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/DokumentCept.php | 11 +++++++++++ .../tests/api/v1/DokumentprestudentCept.php | 11 +++++++++++ .../tests/api/v1/DokumentstudiengangCept.php | 11 +++++++++++ .../codeception/tests/api/v1/EntwicklungsteamCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ErhalterCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ErreichbarkeitCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/Fachbereich2Cept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FeedbackCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FerienCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FilterCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FirmaCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FirmatagCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FirmentypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FotostatusCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FrageCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FreebusyCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FreebusytypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/FunktionCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/GebietCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/GemeindeCept.php | 11 +++++++++++ .../codeception/tests/api/v1/Geschaeftsjahr2Cept.php | 11 +++++++++++ tests/codeception/tests/api/v1/GruppeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/HauptberufCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/InfoscreenCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KategorieCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KontaktCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KontaktmediumCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KontakttypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/Konto2Cept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KontoCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KostenstelleCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/KriterienCept.php | 11 +++++++++++ .../tests/api/v1/LeNotenschluesselCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LePruefungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LegesamtnoteCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehreinheitCept.php | 11 +++++++++++ .../tests/api/v1/LehreinheitgruppeCept.php | 11 +++++++++++ .../tests/api/v1/LehreinheitmitarbeiterCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehrfachCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehrformCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehrfunktionCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehrmittelCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehrtypCept.php | 11 +++++++++++ .../tests/api/v1/LehrveranstaltungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LehrverbandCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LgartcodeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LogCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LvangebotCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LvgesamtnoteCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LvinfoCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LvregelCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/LvregeltypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/MessageCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/MitarbeiterCept.php | 11 +++++++++++ .../tests/api/v1/MobilitaetsprogrammCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/MoodleCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/NewsCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/NoteCept.php | 11 +++++++++++ .../codeception/tests/api/v1/NotenschluesselCept.php | 11 +++++++++++ .../tests/api/v1/NotenschluesselaufteilungCept.php | 11 +++++++++++ .../tests/api/v1/NotenschluesseluebungCept.php | 11 +++++++++++ .../tests/api/v1/NotenschluesselzuordnungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/NotizCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/NotizzuordnungCept.php | 11 +++++++++++ .../tests/api/v1/Organisationseinheit2Cept.php | 11 +++++++++++ .../tests/api/v1/OrganisationseinheittypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/OrtCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/OrtraumtypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PaabgabeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PaabgabetypCept.php | 11 +++++++++++ .../tests/api/v1/PersonfunktionstandortCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PhraseCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PreincomingCept.php | 11 +++++++++++ .../tests/api/v1/PreinteressentstudiengangCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PreoutgoingCept.php | 11 +++++++++++ .../codeception/tests/api/v1/PrestudentstatusCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ProjektCept.php | 11 +++++++++++ .../tests/api/v1/Projekt_ressourceCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ProjektarbeitCept.php | 11 +++++++++++ .../codeception/tests/api/v1/ProjektbetreuerCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ProjektphaseCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ProjekttaskCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ProjekttypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PrueflingCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PruefungCept.php | 11 +++++++++++ .../tests/api/v1/PruefungsanmeldungCept.php | 11 +++++++++++ .../codeception/tests/api/v1/PruefungsfensterCept.php | 11 +++++++++++ .../codeception/tests/api/v1/PruefungsstatusCept.php | 11 +++++++++++ .../codeception/tests/api/v1/PruefungsterminCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/PruefungstypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/RaumtypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/RechnungCept.php | 11 +++++++++++ .../codeception/tests/api/v1/RechnungsbetragCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/RechnungstypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ReihungstestCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ReservierungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/RessourceCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ResturlaubCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/RolleCept.php | 11 +++++++++++ .../tests/api/v1/RolleberechtigungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ScrumsprintCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ScrumteamCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/SemesterwochenCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ServerCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ServiceCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/Sprache2Cept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StandortCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StatistikCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StatusCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StudentCept.php | 11 +++++++++++ .../codeception/tests/api/v1/StudentbeispielCept.php | 11 +++++++++++ .../tests/api/v1/StudentlehrverbandCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StudentuebungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/Studiengang2Cept.php | 11 +++++++++++ .../codeception/tests/api/v1/StudiengangstypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StudienjahrCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StudienordnungCept.php | 11 +++++++++++ .../tests/api/v1/StudienordnungstatusCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StudienplatzCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StundeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StundenplanCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/StundenplandevCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/TagCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/TemplateCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ThreadCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/UebungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VariableCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VeranstaltungCept.php | 11 +++++++++++ .../tests/api/v1/VeranstaltungskategorieCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VertragCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VertragsstatusCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VertragstypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VerwendungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VorlageCept.php | 11 +++++++++++ .../tests/api/v1/VorlagestudiengangCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/VorschlagCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/WebservicelogCept.php | 11 +++++++++++ .../codeception/tests/api/v1/WebservicerechtCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/WebservicetypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZahlungstypCept.php | 11 +++++++++++ .../codeception/tests/api/v1/ZeitaufzeichnungCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZeitfensterCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZeitsperreCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZeitsperretypCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZeitwunschCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZeugnisCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZeugnisnoteCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZgvCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZgvdoktorCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZgvgruppeCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZgvmasterCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/ZweckCept.php | 11 +++++++++++ tests/codeception/tests/api/v1/message_oldCept.php | 11 +++++++++++ 211 files changed, 2321 insertions(+) create mode 100644 tests/codeception/tests/api/v1/AbgabeCept.php create mode 100644 tests/codeception/tests/api/v1/AblaufCept.php create mode 100644 tests/codeception/tests/api/v1/AbschlussbeurteilungCept.php create mode 100644 tests/codeception/tests/api/v1/AbschlusspruefungCept.php create mode 100644 tests/codeception/tests/api/v1/AdresseCept.php create mode 100644 tests/codeception/tests/api/v1/AkadgradCept.php create mode 100644 tests/codeception/tests/api/v1/AkteCept.php create mode 100644 tests/codeception/tests/api/v1/AktivitaetCept.php create mode 100644 tests/codeception/tests/api/v1/AmpelCept.php create mode 100644 tests/codeception/tests/api/v1/AnrechnungCept.php create mode 100644 tests/codeception/tests/api/v1/AntwortCept.php create mode 100644 tests/codeception/tests/api/v1/AnwesenheitCept.php create mode 100644 tests/codeception/tests/api/v1/AppdatenCept.php create mode 100644 tests/codeception/tests/api/v1/ArchivCept.php create mode 100644 tests/codeception/tests/api/v1/AufmerksamdurchCept.php create mode 100644 tests/codeception/tests/api/v1/AufnahmeschluesselCept.php create mode 100644 tests/codeception/tests/api/v1/AufnahmeterminCept.php create mode 100644 tests/codeception/tests/api/v1/AufnahmetermintypCept.php create mode 100644 tests/codeception/tests/api/v1/AufteilungCept.php create mode 100644 tests/codeception/tests/api/v1/AufwandstypCept.php create mode 100644 tests/codeception/tests/api/v1/AusbildungCept.php create mode 100644 tests/codeception/tests/api/v1/BankverbindungCept.php create mode 100644 tests/codeception/tests/api/v1/BeispielCept.php create mode 100644 tests/codeception/tests/api/v1/BenutzerCept.php create mode 100644 tests/codeception/tests/api/v1/BenutzerfunktionCept.php create mode 100644 tests/codeception/tests/api/v1/BenutzergruppeCept.php create mode 100644 tests/codeception/tests/api/v1/BenutzerrolleCept.php create mode 100644 tests/codeception/tests/api/v1/BerechtigungCept.php create mode 100644 tests/codeception/tests/api/v1/BerufstaetigkeitCept.php create mode 100644 tests/codeception/tests/api/v1/BeschaeftigungsausmassCept.php create mode 100644 tests/codeception/tests/api/v1/BesqualCept.php create mode 100644 tests/codeception/tests/api/v1/BestelldetailCept.php create mode 100644 tests/codeception/tests/api/v1/BestelldetailtagCept.php create mode 100644 tests/codeception/tests/api/v1/BestellstatusCept.php create mode 100644 tests/codeception/tests/api/v1/BestellungCept.php create mode 100644 tests/codeception/tests/api/v1/BestellungtagCept.php create mode 100644 tests/codeception/tests/api/v1/BetreuerartCept.php create mode 100644 tests/codeception/tests/api/v1/BetriebsmittelCept.php create mode 100644 tests/codeception/tests/api/v1/Betriebsmittelperson2Cept.php create mode 100644 tests/codeception/tests/api/v1/BetriebsmittelstatusCept.php create mode 100644 tests/codeception/tests/api/v1/BetriebsmitteltypCept.php create mode 100644 tests/codeception/tests/api/v1/BewerbungstermineCept.php create mode 100644 tests/codeception/tests/api/v1/BisfunktionCept.php create mode 100644 tests/codeception/tests/api/v1/BisioCept.php create mode 100644 tests/codeception/tests/api/v1/BisorgformCept.php create mode 100644 tests/codeception/tests/api/v1/BisverwendungCept.php create mode 100644 tests/codeception/tests/api/v1/BuchungCept.php create mode 100644 tests/codeception/tests/api/v1/Buchungstyp2Cept.php create mode 100644 tests/codeception/tests/api/v1/BuchungstypCept.php create mode 100644 tests/codeception/tests/api/v1/BudgetCept.php create mode 100644 tests/codeception/tests/api/v1/CeptTemplate.php create mode 100644 tests/codeception/tests/api/v1/ContentCept.php create mode 100644 tests/codeception/tests/api/v1/ContentchildCept.php create mode 100644 tests/codeception/tests/api/v1/ContentgruppeCept.php create mode 100644 tests/codeception/tests/api/v1/ContentlogCept.php create mode 100644 tests/codeception/tests/api/v1/ContentspracheCept.php create mode 100644 tests/codeception/tests/api/v1/CoodleCept.php create mode 100644 tests/codeception/tests/api/v1/CronjobCept.php create mode 100644 tests/codeception/tests/api/v1/DokumentCept.php create mode 100644 tests/codeception/tests/api/v1/DokumentprestudentCept.php create mode 100644 tests/codeception/tests/api/v1/DokumentstudiengangCept.php create mode 100644 tests/codeception/tests/api/v1/EntwicklungsteamCept.php create mode 100644 tests/codeception/tests/api/v1/ErhalterCept.php create mode 100644 tests/codeception/tests/api/v1/ErreichbarkeitCept.php create mode 100644 tests/codeception/tests/api/v1/Fachbereich2Cept.php create mode 100644 tests/codeception/tests/api/v1/FeedbackCept.php create mode 100644 tests/codeception/tests/api/v1/FerienCept.php create mode 100644 tests/codeception/tests/api/v1/FilterCept.php create mode 100644 tests/codeception/tests/api/v1/FirmaCept.php create mode 100644 tests/codeception/tests/api/v1/FirmatagCept.php create mode 100644 tests/codeception/tests/api/v1/FirmentypCept.php create mode 100644 tests/codeception/tests/api/v1/FotostatusCept.php create mode 100644 tests/codeception/tests/api/v1/FrageCept.php create mode 100644 tests/codeception/tests/api/v1/FreebusyCept.php create mode 100644 tests/codeception/tests/api/v1/FreebusytypCept.php create mode 100644 tests/codeception/tests/api/v1/FunktionCept.php create mode 100644 tests/codeception/tests/api/v1/GebietCept.php create mode 100644 tests/codeception/tests/api/v1/GemeindeCept.php create mode 100644 tests/codeception/tests/api/v1/Geschaeftsjahr2Cept.php create mode 100644 tests/codeception/tests/api/v1/GruppeCept.php create mode 100644 tests/codeception/tests/api/v1/HauptberufCept.php create mode 100644 tests/codeception/tests/api/v1/InfoscreenCept.php create mode 100644 tests/codeception/tests/api/v1/KategorieCept.php create mode 100644 tests/codeception/tests/api/v1/KontaktCept.php create mode 100644 tests/codeception/tests/api/v1/KontaktmediumCept.php create mode 100644 tests/codeception/tests/api/v1/KontakttypCept.php create mode 100644 tests/codeception/tests/api/v1/Konto2Cept.php create mode 100644 tests/codeception/tests/api/v1/KontoCept.php create mode 100644 tests/codeception/tests/api/v1/KostenstelleCept.php create mode 100644 tests/codeception/tests/api/v1/KriterienCept.php create mode 100644 tests/codeception/tests/api/v1/LeNotenschluesselCept.php create mode 100644 tests/codeception/tests/api/v1/LePruefungCept.php create mode 100644 tests/codeception/tests/api/v1/LegesamtnoteCept.php create mode 100644 tests/codeception/tests/api/v1/LehreinheitCept.php create mode 100644 tests/codeception/tests/api/v1/LehreinheitgruppeCept.php create mode 100644 tests/codeception/tests/api/v1/LehreinheitmitarbeiterCept.php create mode 100644 tests/codeception/tests/api/v1/LehrfachCept.php create mode 100644 tests/codeception/tests/api/v1/LehrformCept.php create mode 100644 tests/codeception/tests/api/v1/LehrfunktionCept.php create mode 100644 tests/codeception/tests/api/v1/LehrmittelCept.php create mode 100644 tests/codeception/tests/api/v1/LehrtypCept.php create mode 100644 tests/codeception/tests/api/v1/LehrveranstaltungCept.php create mode 100644 tests/codeception/tests/api/v1/LehrverbandCept.php create mode 100644 tests/codeception/tests/api/v1/LgartcodeCept.php create mode 100644 tests/codeception/tests/api/v1/LogCept.php create mode 100644 tests/codeception/tests/api/v1/LvangebotCept.php create mode 100644 tests/codeception/tests/api/v1/LvgesamtnoteCept.php create mode 100644 tests/codeception/tests/api/v1/LvinfoCept.php create mode 100644 tests/codeception/tests/api/v1/LvregelCept.php create mode 100644 tests/codeception/tests/api/v1/LvregeltypCept.php create mode 100644 tests/codeception/tests/api/v1/MessageCept.php create mode 100644 tests/codeception/tests/api/v1/MitarbeiterCept.php create mode 100644 tests/codeception/tests/api/v1/MobilitaetsprogrammCept.php create mode 100644 tests/codeception/tests/api/v1/MoodleCept.php create mode 100644 tests/codeception/tests/api/v1/NewsCept.php create mode 100644 tests/codeception/tests/api/v1/NoteCept.php create mode 100644 tests/codeception/tests/api/v1/NotenschluesselCept.php create mode 100644 tests/codeception/tests/api/v1/NotenschluesselaufteilungCept.php create mode 100644 tests/codeception/tests/api/v1/NotenschluesseluebungCept.php create mode 100644 tests/codeception/tests/api/v1/NotenschluesselzuordnungCept.php create mode 100644 tests/codeception/tests/api/v1/NotizCept.php create mode 100644 tests/codeception/tests/api/v1/NotizzuordnungCept.php create mode 100644 tests/codeception/tests/api/v1/Organisationseinheit2Cept.php create mode 100644 tests/codeception/tests/api/v1/OrganisationseinheittypCept.php create mode 100644 tests/codeception/tests/api/v1/OrtCept.php create mode 100644 tests/codeception/tests/api/v1/OrtraumtypCept.php create mode 100644 tests/codeception/tests/api/v1/PaabgabeCept.php create mode 100644 tests/codeception/tests/api/v1/PaabgabetypCept.php create mode 100644 tests/codeception/tests/api/v1/PersonfunktionstandortCept.php create mode 100644 tests/codeception/tests/api/v1/PhraseCept.php create mode 100644 tests/codeception/tests/api/v1/PreincomingCept.php create mode 100644 tests/codeception/tests/api/v1/PreinteressentstudiengangCept.php create mode 100644 tests/codeception/tests/api/v1/PreoutgoingCept.php create mode 100644 tests/codeception/tests/api/v1/PrestudentstatusCept.php create mode 100644 tests/codeception/tests/api/v1/ProjektCept.php create mode 100644 tests/codeception/tests/api/v1/Projekt_ressourceCept.php create mode 100644 tests/codeception/tests/api/v1/ProjektarbeitCept.php create mode 100644 tests/codeception/tests/api/v1/ProjektbetreuerCept.php create mode 100644 tests/codeception/tests/api/v1/ProjektphaseCept.php create mode 100644 tests/codeception/tests/api/v1/ProjekttaskCept.php create mode 100644 tests/codeception/tests/api/v1/ProjekttypCept.php create mode 100644 tests/codeception/tests/api/v1/PrueflingCept.php create mode 100644 tests/codeception/tests/api/v1/PruefungCept.php create mode 100644 tests/codeception/tests/api/v1/PruefungsanmeldungCept.php create mode 100644 tests/codeception/tests/api/v1/PruefungsfensterCept.php create mode 100644 tests/codeception/tests/api/v1/PruefungsstatusCept.php create mode 100644 tests/codeception/tests/api/v1/PruefungsterminCept.php create mode 100644 tests/codeception/tests/api/v1/PruefungstypCept.php create mode 100644 tests/codeception/tests/api/v1/RaumtypCept.php create mode 100644 tests/codeception/tests/api/v1/RechnungCept.php create mode 100644 tests/codeception/tests/api/v1/RechnungsbetragCept.php create mode 100644 tests/codeception/tests/api/v1/RechnungstypCept.php create mode 100644 tests/codeception/tests/api/v1/ReihungstestCept.php create mode 100644 tests/codeception/tests/api/v1/ReservierungCept.php create mode 100644 tests/codeception/tests/api/v1/RessourceCept.php create mode 100644 tests/codeception/tests/api/v1/ResturlaubCept.php create mode 100644 tests/codeception/tests/api/v1/RolleCept.php create mode 100644 tests/codeception/tests/api/v1/RolleberechtigungCept.php create mode 100644 tests/codeception/tests/api/v1/ScrumsprintCept.php create mode 100644 tests/codeception/tests/api/v1/ScrumteamCept.php create mode 100644 tests/codeception/tests/api/v1/SemesterwochenCept.php create mode 100644 tests/codeception/tests/api/v1/ServerCept.php create mode 100644 tests/codeception/tests/api/v1/ServiceCept.php create mode 100644 tests/codeception/tests/api/v1/Sprache2Cept.php create mode 100644 tests/codeception/tests/api/v1/StandortCept.php create mode 100644 tests/codeception/tests/api/v1/StatistikCept.php create mode 100644 tests/codeception/tests/api/v1/StatusCept.php create mode 100644 tests/codeception/tests/api/v1/StudentCept.php create mode 100644 tests/codeception/tests/api/v1/StudentbeispielCept.php create mode 100644 tests/codeception/tests/api/v1/StudentlehrverbandCept.php create mode 100644 tests/codeception/tests/api/v1/StudentuebungCept.php create mode 100644 tests/codeception/tests/api/v1/Studiengang2Cept.php create mode 100644 tests/codeception/tests/api/v1/StudiengangstypCept.php create mode 100644 tests/codeception/tests/api/v1/StudienjahrCept.php create mode 100644 tests/codeception/tests/api/v1/StudienordnungCept.php create mode 100644 tests/codeception/tests/api/v1/StudienordnungstatusCept.php create mode 100644 tests/codeception/tests/api/v1/StudienplatzCept.php create mode 100644 tests/codeception/tests/api/v1/StundeCept.php create mode 100644 tests/codeception/tests/api/v1/StundenplanCept.php create mode 100644 tests/codeception/tests/api/v1/StundenplandevCept.php create mode 100644 tests/codeception/tests/api/v1/TagCept.php create mode 100644 tests/codeception/tests/api/v1/TemplateCept.php create mode 100644 tests/codeception/tests/api/v1/ThreadCept.php create mode 100644 tests/codeception/tests/api/v1/UebungCept.php create mode 100644 tests/codeception/tests/api/v1/VariableCept.php create mode 100644 tests/codeception/tests/api/v1/VeranstaltungCept.php create mode 100644 tests/codeception/tests/api/v1/VeranstaltungskategorieCept.php create mode 100644 tests/codeception/tests/api/v1/VertragCept.php create mode 100644 tests/codeception/tests/api/v1/VertragsstatusCept.php create mode 100644 tests/codeception/tests/api/v1/VertragstypCept.php create mode 100644 tests/codeception/tests/api/v1/VerwendungCept.php create mode 100644 tests/codeception/tests/api/v1/VorlageCept.php create mode 100644 tests/codeception/tests/api/v1/VorlagestudiengangCept.php create mode 100644 tests/codeception/tests/api/v1/VorschlagCept.php create mode 100644 tests/codeception/tests/api/v1/WebservicelogCept.php create mode 100644 tests/codeception/tests/api/v1/WebservicerechtCept.php create mode 100644 tests/codeception/tests/api/v1/WebservicetypCept.php create mode 100644 tests/codeception/tests/api/v1/ZahlungstypCept.php create mode 100644 tests/codeception/tests/api/v1/ZeitaufzeichnungCept.php create mode 100644 tests/codeception/tests/api/v1/ZeitfensterCept.php create mode 100644 tests/codeception/tests/api/v1/ZeitsperreCept.php create mode 100644 tests/codeception/tests/api/v1/ZeitsperretypCept.php create mode 100644 tests/codeception/tests/api/v1/ZeitwunschCept.php create mode 100644 tests/codeception/tests/api/v1/ZeugnisCept.php create mode 100644 tests/codeception/tests/api/v1/ZeugnisnoteCept.php create mode 100644 tests/codeception/tests/api/v1/ZgvCept.php create mode 100644 tests/codeception/tests/api/v1/ZgvdoktorCept.php create mode 100644 tests/codeception/tests/api/v1/ZgvgruppeCept.php create mode 100644 tests/codeception/tests/api/v1/ZgvmasterCept.php create mode 100644 tests/codeception/tests/api/v1/ZweckCept.php create mode 100644 tests/codeception/tests/api/v1/message_oldCept.php diff --git a/tests/codeception/tests/api/v1/AbgabeCept.php b/tests/codeception/tests/api/v1/AbgabeCept.php new file mode 100644 index 000000000..c6c2c0539 --- /dev/null +++ b/tests/codeception/tests/api/v1/AbgabeCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AblaufCept.php b/tests/codeception/tests/api/v1/AblaufCept.php new file mode 100644 index 000000000..dc04c4796 --- /dev/null +++ b/tests/codeception/tests/api/v1/AblaufCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AbschlussbeurteilungCept.php b/tests/codeception/tests/api/v1/AbschlussbeurteilungCept.php new file mode 100644 index 000000000..2465edd2a --- /dev/null +++ b/tests/codeception/tests/api/v1/AbschlussbeurteilungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AbschlusspruefungCept.php b/tests/codeception/tests/api/v1/AbschlusspruefungCept.php new file mode 100644 index 000000000..5d736fe97 --- /dev/null +++ b/tests/codeception/tests/api/v1/AbschlusspruefungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AdresseCept.php b/tests/codeception/tests/api/v1/AdresseCept.php new file mode 100644 index 000000000..9a25f5364 --- /dev/null +++ b/tests/codeception/tests/api/v1/AdresseCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AkadgradCept.php b/tests/codeception/tests/api/v1/AkadgradCept.php new file mode 100644 index 000000000..878150dce --- /dev/null +++ b/tests/codeception/tests/api/v1/AkadgradCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AkteCept.php b/tests/codeception/tests/api/v1/AkteCept.php new file mode 100644 index 000000000..e3823c2eb --- /dev/null +++ b/tests/codeception/tests/api/v1/AkteCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AktivitaetCept.php b/tests/codeception/tests/api/v1/AktivitaetCept.php new file mode 100644 index 000000000..1a5d7a315 --- /dev/null +++ b/tests/codeception/tests/api/v1/AktivitaetCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AmpelCept.php b/tests/codeception/tests/api/v1/AmpelCept.php new file mode 100644 index 000000000..24afaa718 --- /dev/null +++ b/tests/codeception/tests/api/v1/AmpelCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AnrechnungCept.php b/tests/codeception/tests/api/v1/AnrechnungCept.php new file mode 100644 index 000000000..8c2acbf52 --- /dev/null +++ b/tests/codeception/tests/api/v1/AnrechnungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AntwortCept.php b/tests/codeception/tests/api/v1/AntwortCept.php new file mode 100644 index 000000000..344688c19 --- /dev/null +++ b/tests/codeception/tests/api/v1/AntwortCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AnwesenheitCept.php b/tests/codeception/tests/api/v1/AnwesenheitCept.php new file mode 100644 index 000000000..b67ec4341 --- /dev/null +++ b/tests/codeception/tests/api/v1/AnwesenheitCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AppdatenCept.php b/tests/codeception/tests/api/v1/AppdatenCept.php new file mode 100644 index 000000000..a1e7ef47a --- /dev/null +++ b/tests/codeception/tests/api/v1/AppdatenCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ArchivCept.php b/tests/codeception/tests/api/v1/ArchivCept.php new file mode 100644 index 000000000..cc231757b --- /dev/null +++ b/tests/codeception/tests/api/v1/ArchivCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AufmerksamdurchCept.php b/tests/codeception/tests/api/v1/AufmerksamdurchCept.php new file mode 100644 index 000000000..91d37753e --- /dev/null +++ b/tests/codeception/tests/api/v1/AufmerksamdurchCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AufnahmeschluesselCept.php b/tests/codeception/tests/api/v1/AufnahmeschluesselCept.php new file mode 100644 index 000000000..a8859db75 --- /dev/null +++ b/tests/codeception/tests/api/v1/AufnahmeschluesselCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AufnahmeterminCept.php b/tests/codeception/tests/api/v1/AufnahmeterminCept.php new file mode 100644 index 000000000..4f8ef8cde --- /dev/null +++ b/tests/codeception/tests/api/v1/AufnahmeterminCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AufnahmetermintypCept.php b/tests/codeception/tests/api/v1/AufnahmetermintypCept.php new file mode 100644 index 000000000..9bd8f2902 --- /dev/null +++ b/tests/codeception/tests/api/v1/AufnahmetermintypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AufteilungCept.php b/tests/codeception/tests/api/v1/AufteilungCept.php new file mode 100644 index 000000000..5568b8018 --- /dev/null +++ b/tests/codeception/tests/api/v1/AufteilungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AufwandstypCept.php b/tests/codeception/tests/api/v1/AufwandstypCept.php new file mode 100644 index 000000000..5c1029792 --- /dev/null +++ b/tests/codeception/tests/api/v1/AufwandstypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/AusbildungCept.php b/tests/codeception/tests/api/v1/AusbildungCept.php new file mode 100644 index 000000000..6c230576d --- /dev/null +++ b/tests/codeception/tests/api/v1/AusbildungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BankverbindungCept.php b/tests/codeception/tests/api/v1/BankverbindungCept.php new file mode 100644 index 000000000..90f30b080 --- /dev/null +++ b/tests/codeception/tests/api/v1/BankverbindungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BeispielCept.php b/tests/codeception/tests/api/v1/BeispielCept.php new file mode 100644 index 000000000..257831403 --- /dev/null +++ b/tests/codeception/tests/api/v1/BeispielCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BenutzerCept.php b/tests/codeception/tests/api/v1/BenutzerCept.php new file mode 100644 index 000000000..f43857a00 --- /dev/null +++ b/tests/codeception/tests/api/v1/BenutzerCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BenutzerfunktionCept.php b/tests/codeception/tests/api/v1/BenutzerfunktionCept.php new file mode 100644 index 000000000..e3038d7f4 --- /dev/null +++ b/tests/codeception/tests/api/v1/BenutzerfunktionCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BenutzergruppeCept.php b/tests/codeception/tests/api/v1/BenutzergruppeCept.php new file mode 100644 index 000000000..d5c7ba347 --- /dev/null +++ b/tests/codeception/tests/api/v1/BenutzergruppeCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BenutzerrolleCept.php b/tests/codeception/tests/api/v1/BenutzerrolleCept.php new file mode 100644 index 000000000..a64bbfac0 --- /dev/null +++ b/tests/codeception/tests/api/v1/BenutzerrolleCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BerechtigungCept.php b/tests/codeception/tests/api/v1/BerechtigungCept.php new file mode 100644 index 000000000..3e4a9b85b --- /dev/null +++ b/tests/codeception/tests/api/v1/BerechtigungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BerufstaetigkeitCept.php b/tests/codeception/tests/api/v1/BerufstaetigkeitCept.php new file mode 100644 index 000000000..174f23771 --- /dev/null +++ b/tests/codeception/tests/api/v1/BerufstaetigkeitCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BeschaeftigungsausmassCept.php b/tests/codeception/tests/api/v1/BeschaeftigungsausmassCept.php new file mode 100644 index 000000000..475aaabd8 --- /dev/null +++ b/tests/codeception/tests/api/v1/BeschaeftigungsausmassCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BesqualCept.php b/tests/codeception/tests/api/v1/BesqualCept.php new file mode 100644 index 000000000..2f2adc129 --- /dev/null +++ b/tests/codeception/tests/api/v1/BesqualCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BestelldetailCept.php b/tests/codeception/tests/api/v1/BestelldetailCept.php new file mode 100644 index 000000000..f2f18a006 --- /dev/null +++ b/tests/codeception/tests/api/v1/BestelldetailCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BestelldetailtagCept.php b/tests/codeception/tests/api/v1/BestelldetailtagCept.php new file mode 100644 index 000000000..cd02c31bc --- /dev/null +++ b/tests/codeception/tests/api/v1/BestelldetailtagCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BestellstatusCept.php b/tests/codeception/tests/api/v1/BestellstatusCept.php new file mode 100644 index 000000000..720bf5349 --- /dev/null +++ b/tests/codeception/tests/api/v1/BestellstatusCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BestellungCept.php b/tests/codeception/tests/api/v1/BestellungCept.php new file mode 100644 index 000000000..ed0dce8df --- /dev/null +++ b/tests/codeception/tests/api/v1/BestellungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BestellungtagCept.php b/tests/codeception/tests/api/v1/BestellungtagCept.php new file mode 100644 index 000000000..8ed7375d7 --- /dev/null +++ b/tests/codeception/tests/api/v1/BestellungtagCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BetreuerartCept.php b/tests/codeception/tests/api/v1/BetreuerartCept.php new file mode 100644 index 000000000..1dd76737d --- /dev/null +++ b/tests/codeception/tests/api/v1/BetreuerartCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BetriebsmittelCept.php b/tests/codeception/tests/api/v1/BetriebsmittelCept.php new file mode 100644 index 000000000..1845fbc61 --- /dev/null +++ b/tests/codeception/tests/api/v1/BetriebsmittelCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Betriebsmittelperson2Cept.php b/tests/codeception/tests/api/v1/Betriebsmittelperson2Cept.php new file mode 100644 index 000000000..a1b907dbb --- /dev/null +++ b/tests/codeception/tests/api/v1/Betriebsmittelperson2Cept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BetriebsmittelstatusCept.php b/tests/codeception/tests/api/v1/BetriebsmittelstatusCept.php new file mode 100644 index 000000000..dcb7197ea --- /dev/null +++ b/tests/codeception/tests/api/v1/BetriebsmittelstatusCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BetriebsmitteltypCept.php b/tests/codeception/tests/api/v1/BetriebsmitteltypCept.php new file mode 100644 index 000000000..8d89303eb --- /dev/null +++ b/tests/codeception/tests/api/v1/BetriebsmitteltypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BewerbungstermineCept.php b/tests/codeception/tests/api/v1/BewerbungstermineCept.php new file mode 100644 index 000000000..b449d3428 --- /dev/null +++ b/tests/codeception/tests/api/v1/BewerbungstermineCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BisfunktionCept.php b/tests/codeception/tests/api/v1/BisfunktionCept.php new file mode 100644 index 000000000..88c7c9337 --- /dev/null +++ b/tests/codeception/tests/api/v1/BisfunktionCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BisioCept.php b/tests/codeception/tests/api/v1/BisioCept.php new file mode 100644 index 000000000..94e407b11 --- /dev/null +++ b/tests/codeception/tests/api/v1/BisioCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BisorgformCept.php b/tests/codeception/tests/api/v1/BisorgformCept.php new file mode 100644 index 000000000..ee44a40ad --- /dev/null +++ b/tests/codeception/tests/api/v1/BisorgformCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BisverwendungCept.php b/tests/codeception/tests/api/v1/BisverwendungCept.php new file mode 100644 index 000000000..f1f5e5240 --- /dev/null +++ b/tests/codeception/tests/api/v1/BisverwendungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BuchungCept.php b/tests/codeception/tests/api/v1/BuchungCept.php new file mode 100644 index 000000000..6d70a5460 --- /dev/null +++ b/tests/codeception/tests/api/v1/BuchungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Buchungstyp2Cept.php b/tests/codeception/tests/api/v1/Buchungstyp2Cept.php new file mode 100644 index 000000000..fc33a9322 --- /dev/null +++ b/tests/codeception/tests/api/v1/Buchungstyp2Cept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BuchungstypCept.php b/tests/codeception/tests/api/v1/BuchungstypCept.php new file mode 100644 index 000000000..74ea11692 --- /dev/null +++ b/tests/codeception/tests/api/v1/BuchungstypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/BudgetCept.php b/tests/codeception/tests/api/v1/BudgetCept.php new file mode 100644 index 000000000..2022697cb --- /dev/null +++ b/tests/codeception/tests/api/v1/BudgetCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/CeptTemplate.php b/tests/codeception/tests/api/v1/CeptTemplate.php new file mode 100644 index 000000000..3d94ad755 --- /dev/null +++ b/tests/codeception/tests/api/v1/CeptTemplate.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ContentCept.php b/tests/codeception/tests/api/v1/ContentCept.php new file mode 100644 index 000000000..e948a59fa --- /dev/null +++ b/tests/codeception/tests/api/v1/ContentCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ContentchildCept.php b/tests/codeception/tests/api/v1/ContentchildCept.php new file mode 100644 index 000000000..eda1def28 --- /dev/null +++ b/tests/codeception/tests/api/v1/ContentchildCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ContentgruppeCept.php b/tests/codeception/tests/api/v1/ContentgruppeCept.php new file mode 100644 index 000000000..ab55c4939 --- /dev/null +++ b/tests/codeception/tests/api/v1/ContentgruppeCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ContentlogCept.php b/tests/codeception/tests/api/v1/ContentlogCept.php new file mode 100644 index 000000000..feebcbae6 --- /dev/null +++ b/tests/codeception/tests/api/v1/ContentlogCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ContentspracheCept.php b/tests/codeception/tests/api/v1/ContentspracheCept.php new file mode 100644 index 000000000..7f726e368 --- /dev/null +++ b/tests/codeception/tests/api/v1/ContentspracheCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/CoodleCept.php b/tests/codeception/tests/api/v1/CoodleCept.php new file mode 100644 index 000000000..34ade8fdc --- /dev/null +++ b/tests/codeception/tests/api/v1/CoodleCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/CronjobCept.php b/tests/codeception/tests/api/v1/CronjobCept.php new file mode 100644 index 000000000..99708c0f6 --- /dev/null +++ b/tests/codeception/tests/api/v1/CronjobCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/DokumentCept.php b/tests/codeception/tests/api/v1/DokumentCept.php new file mode 100644 index 000000000..35cb94a5c --- /dev/null +++ b/tests/codeception/tests/api/v1/DokumentCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/DokumentprestudentCept.php b/tests/codeception/tests/api/v1/DokumentprestudentCept.php new file mode 100644 index 000000000..c2b1e09a1 --- /dev/null +++ b/tests/codeception/tests/api/v1/DokumentprestudentCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/DokumentstudiengangCept.php b/tests/codeception/tests/api/v1/DokumentstudiengangCept.php new file mode 100644 index 000000000..8fb969fd3 --- /dev/null +++ b/tests/codeception/tests/api/v1/DokumentstudiengangCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/EntwicklungsteamCept.php b/tests/codeception/tests/api/v1/EntwicklungsteamCept.php new file mode 100644 index 000000000..f1fe29ddc --- /dev/null +++ b/tests/codeception/tests/api/v1/EntwicklungsteamCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ErhalterCept.php b/tests/codeception/tests/api/v1/ErhalterCept.php new file mode 100644 index 000000000..b2fe37e3a --- /dev/null +++ b/tests/codeception/tests/api/v1/ErhalterCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ErreichbarkeitCept.php b/tests/codeception/tests/api/v1/ErreichbarkeitCept.php new file mode 100644 index 000000000..73068e9d4 --- /dev/null +++ b/tests/codeception/tests/api/v1/ErreichbarkeitCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Fachbereich2Cept.php b/tests/codeception/tests/api/v1/Fachbereich2Cept.php new file mode 100644 index 000000000..adaa01ad8 --- /dev/null +++ b/tests/codeception/tests/api/v1/Fachbereich2Cept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FeedbackCept.php b/tests/codeception/tests/api/v1/FeedbackCept.php new file mode 100644 index 000000000..000c54e25 --- /dev/null +++ b/tests/codeception/tests/api/v1/FeedbackCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FerienCept.php b/tests/codeception/tests/api/v1/FerienCept.php new file mode 100644 index 000000000..1d425bbf4 --- /dev/null +++ b/tests/codeception/tests/api/v1/FerienCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FilterCept.php b/tests/codeception/tests/api/v1/FilterCept.php new file mode 100644 index 000000000..8381e2ba3 --- /dev/null +++ b/tests/codeception/tests/api/v1/FilterCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FirmaCept.php b/tests/codeception/tests/api/v1/FirmaCept.php new file mode 100644 index 000000000..167f521b3 --- /dev/null +++ b/tests/codeception/tests/api/v1/FirmaCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FirmatagCept.php b/tests/codeception/tests/api/v1/FirmatagCept.php new file mode 100644 index 000000000..2c6db3a79 --- /dev/null +++ b/tests/codeception/tests/api/v1/FirmatagCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FirmentypCept.php b/tests/codeception/tests/api/v1/FirmentypCept.php new file mode 100644 index 000000000..ae9d7a023 --- /dev/null +++ b/tests/codeception/tests/api/v1/FirmentypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FotostatusCept.php b/tests/codeception/tests/api/v1/FotostatusCept.php new file mode 100644 index 000000000..53915f361 --- /dev/null +++ b/tests/codeception/tests/api/v1/FotostatusCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FrageCept.php b/tests/codeception/tests/api/v1/FrageCept.php new file mode 100644 index 000000000..1e94ed8f9 --- /dev/null +++ b/tests/codeception/tests/api/v1/FrageCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FreebusyCept.php b/tests/codeception/tests/api/v1/FreebusyCept.php new file mode 100644 index 000000000..8793c3921 --- /dev/null +++ b/tests/codeception/tests/api/v1/FreebusyCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FreebusytypCept.php b/tests/codeception/tests/api/v1/FreebusytypCept.php new file mode 100644 index 000000000..4d5cc2f90 --- /dev/null +++ b/tests/codeception/tests/api/v1/FreebusytypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/FunktionCept.php b/tests/codeception/tests/api/v1/FunktionCept.php new file mode 100644 index 000000000..1c6b309b2 --- /dev/null +++ b/tests/codeception/tests/api/v1/FunktionCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/GebietCept.php b/tests/codeception/tests/api/v1/GebietCept.php new file mode 100644 index 000000000..cb40ef097 --- /dev/null +++ b/tests/codeception/tests/api/v1/GebietCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/GemeindeCept.php b/tests/codeception/tests/api/v1/GemeindeCept.php new file mode 100644 index 000000000..dacebe651 --- /dev/null +++ b/tests/codeception/tests/api/v1/GemeindeCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Geschaeftsjahr2Cept.php b/tests/codeception/tests/api/v1/Geschaeftsjahr2Cept.php new file mode 100644 index 000000000..a443e6f6c --- /dev/null +++ b/tests/codeception/tests/api/v1/Geschaeftsjahr2Cept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/GruppeCept.php b/tests/codeception/tests/api/v1/GruppeCept.php new file mode 100644 index 000000000..a0187f912 --- /dev/null +++ b/tests/codeception/tests/api/v1/GruppeCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/HauptberufCept.php b/tests/codeception/tests/api/v1/HauptberufCept.php new file mode 100644 index 000000000..d0ce0aa5e --- /dev/null +++ b/tests/codeception/tests/api/v1/HauptberufCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/InfoscreenCept.php b/tests/codeception/tests/api/v1/InfoscreenCept.php new file mode 100644 index 000000000..70e3e52ed --- /dev/null +++ b/tests/codeception/tests/api/v1/InfoscreenCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KategorieCept.php b/tests/codeception/tests/api/v1/KategorieCept.php new file mode 100644 index 000000000..aa965ef06 --- /dev/null +++ b/tests/codeception/tests/api/v1/KategorieCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KontaktCept.php b/tests/codeception/tests/api/v1/KontaktCept.php new file mode 100644 index 000000000..c27c54062 --- /dev/null +++ b/tests/codeception/tests/api/v1/KontaktCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KontaktmediumCept.php b/tests/codeception/tests/api/v1/KontaktmediumCept.php new file mode 100644 index 000000000..bfa509212 --- /dev/null +++ b/tests/codeception/tests/api/v1/KontaktmediumCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KontakttypCept.php b/tests/codeception/tests/api/v1/KontakttypCept.php new file mode 100644 index 000000000..ecc822237 --- /dev/null +++ b/tests/codeception/tests/api/v1/KontakttypCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Konto2Cept.php b/tests/codeception/tests/api/v1/Konto2Cept.php new file mode 100644 index 000000000..d104bb996 --- /dev/null +++ b/tests/codeception/tests/api/v1/Konto2Cept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KontoCept.php b/tests/codeception/tests/api/v1/KontoCept.php new file mode 100644 index 000000000..8b3260d48 --- /dev/null +++ b/tests/codeception/tests/api/v1/KontoCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KostenstelleCept.php b/tests/codeception/tests/api/v1/KostenstelleCept.php new file mode 100644 index 000000000..1e25f7e85 --- /dev/null +++ b/tests/codeception/tests/api/v1/KostenstelleCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/KriterienCept.php b/tests/codeception/tests/api/v1/KriterienCept.php new file mode 100644 index 000000000..b8fc1c1ac --- /dev/null +++ b/tests/codeception/tests/api/v1/KriterienCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LeNotenschluesselCept.php b/tests/codeception/tests/api/v1/LeNotenschluesselCept.php new file mode 100644 index 000000000..26efd07ac --- /dev/null +++ b/tests/codeception/tests/api/v1/LeNotenschluesselCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LePruefungCept.php b/tests/codeception/tests/api/v1/LePruefungCept.php new file mode 100644 index 000000000..ce2611eff --- /dev/null +++ b/tests/codeception/tests/api/v1/LePruefungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LegesamtnoteCept.php b/tests/codeception/tests/api/v1/LegesamtnoteCept.php new file mode 100644 index 000000000..7d5a0a2a3 --- /dev/null +++ b/tests/codeception/tests/api/v1/LegesamtnoteCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehreinheitCept.php b/tests/codeception/tests/api/v1/LehreinheitCept.php new file mode 100644 index 000000000..849e4dab5 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehreinheitCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehreinheitgruppeCept.php b/tests/codeception/tests/api/v1/LehreinheitgruppeCept.php new file mode 100644 index 000000000..795040d78 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehreinheitgruppeCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehreinheitmitarbeiterCept.php b/tests/codeception/tests/api/v1/LehreinheitmitarbeiterCept.php new file mode 100644 index 000000000..a5ff35244 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehreinheitmitarbeiterCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrfachCept.php b/tests/codeception/tests/api/v1/LehrfachCept.php new file mode 100644 index 000000000..08611e0f6 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrfachCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrformCept.php b/tests/codeception/tests/api/v1/LehrformCept.php new file mode 100644 index 000000000..e703e6df7 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrformCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrfunktionCept.php b/tests/codeception/tests/api/v1/LehrfunktionCept.php new file mode 100644 index 000000000..0d4395e13 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrfunktionCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrmittelCept.php b/tests/codeception/tests/api/v1/LehrmittelCept.php new file mode 100644 index 000000000..9d6694ae8 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrmittelCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrtypCept.php b/tests/codeception/tests/api/v1/LehrtypCept.php new file mode 100644 index 000000000..136fe0150 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrtypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Lehrtyp/Lehrtyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Lehrtyp/Lehrtyp", array("lehrtyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrveranstaltungCept.php b/tests/codeception/tests/api/v1/LehrveranstaltungCept.php new file mode 100644 index 000000000..12e79f74a --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrveranstaltungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Lehrveranstaltung/Lehrveranstaltung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Lehrveranstaltung/Lehrveranstaltung", array("lehrveranstaltung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LehrverbandCept.php b/tests/codeception/tests/api/v1/LehrverbandCept.php new file mode 100644 index 000000000..2515fcce6 --- /dev/null +++ b/tests/codeception/tests/api/v1/LehrverbandCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Lehrverband/Lehrverband"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Lehrverband/Lehrverband", array("gruppe" => "0", "verband" => "0", "semester" => "0", "studiengang_kz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LgartcodeCept.php b/tests/codeception/tests/api/v1/LgartcodeCept.php new file mode 100644 index 000000000..8ced5f3ff --- /dev/null +++ b/tests/codeception/tests/api/v1/LgartcodeCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Lgartcode/Lgartcode"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Lgartcode/Lgartcode", array("lgartcode" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LogCept.php b/tests/codeception/tests/api/v1/LogCept.php new file mode 100644 index 000000000..cc5515b10 --- /dev/null +++ b/tests/codeception/tests/api/v1/LogCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Log/Log"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Log/Log", array("log_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LvangebotCept.php b/tests/codeception/tests/api/v1/LvangebotCept.php new file mode 100644 index 000000000..80c44e09d --- /dev/null +++ b/tests/codeception/tests/api/v1/LvangebotCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Lvangebot/Lvangebot"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Lvangebot/Lvangebot", array("lvangebot_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LvgesamtnoteCept.php b/tests/codeception/tests/api/v1/LvgesamtnoteCept.php new file mode 100644 index 000000000..46c508aa4 --- /dev/null +++ b/tests/codeception/tests/api/v1/LvgesamtnoteCept.php @@ -0,0 +1,11 @@ +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" => "0", "studiensemester_kurzbz" => "0", "lehrveranstaltung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LvinfoCept.php b/tests/codeception/tests/api/v1/LvinfoCept.php new file mode 100644 index 000000000..390784532 --- /dev/null +++ b/tests/codeception/tests/api/v1/LvinfoCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Lvinfo/Lvinfo"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Lvinfo/Lvinfo", array("sprache" => "0", "lehrveranstaltung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LvregelCept.php b/tests/codeception/tests/api/v1/LvregelCept.php new file mode 100644 index 000000000..b8f1d6d7d --- /dev/null +++ b/tests/codeception/tests/api/v1/LvregelCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Lvregel/Lvregel"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Lvregel/Lvregel", array("lvregel_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/LvregeltypCept.php b/tests/codeception/tests/api/v1/LvregeltypCept.php new file mode 100644 index 000000000..ac22b753d --- /dev/null +++ b/tests/codeception/tests/api/v1/LvregeltypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Lvregeltyp/Lvregeltyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Lvregeltyp/Lvregeltyp", array("lvregeltyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/MessageCept.php b/tests/codeception/tests/api/v1/MessageCept.php new file mode 100644 index 000000000..96208c003 --- /dev/null +++ b/tests/codeception/tests/api/v1/MessageCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Message/Message"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Message/Message", array("person_id" => "0", "all" => "0", "uid" => "0", "all" => "0", "token" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/MitarbeiterCept.php b/tests/codeception/tests/api/v1/MitarbeiterCept.php new file mode 100644 index 000000000..7697beee5 --- /dev/null +++ b/tests/codeception/tests/api/v1/MitarbeiterCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Mitarbeiter/Mitarbeiter"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Mitarbeiter/Mitarbeiter", array("mitarbeiter_uid" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/MobilitaetsprogrammCept.php b/tests/codeception/tests/api/v1/MobilitaetsprogrammCept.php new file mode 100644 index 000000000..9e0c48690 --- /dev/null +++ b/tests/codeception/tests/api/v1/MobilitaetsprogrammCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Mobilitaetsprogramm/Mobilitaetsprogramm"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Mobilitaetsprogramm/Mobilitaetsprogramm", array("mobilitaetsprogramm_code" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/MoodleCept.php b/tests/codeception/tests/api/v1/MoodleCept.php new file mode 100644 index 000000000..de15052a4 --- /dev/null +++ b/tests/codeception/tests/api/v1/MoodleCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Moodle/Moodle"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Moodle/Moodle", array("moodle_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NewsCept.php b/tests/codeception/tests/api/v1/NewsCept.php new file mode 100644 index 000000000..37db55add --- /dev/null +++ b/tests/codeception/tests/api/v1/NewsCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/content/News/News"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/content/News/News", array("news_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NoteCept.php b/tests/codeception/tests/api/v1/NoteCept.php new file mode 100644 index 000000000..4cc8f0278 --- /dev/null +++ b/tests/codeception/tests/api/v1/NoteCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Note/Note"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Note/Note", array("note" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NotenschluesselCept.php b/tests/codeception/tests/api/v1/NotenschluesselCept.php new file mode 100644 index 000000000..f8bc8ca4c --- /dev/null +++ b/tests/codeception/tests/api/v1/NotenschluesselCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Notenschluessel/Notenschluessel"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Notenschluessel/Notenschluessel", array("notenschluessel_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NotenschluesselaufteilungCept.php b/tests/codeception/tests/api/v1/NotenschluesselaufteilungCept.php new file mode 100644 index 000000000..413641182 --- /dev/null +++ b/tests/codeception/tests/api/v1/NotenschluesselaufteilungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Notenschluesselaufteilung/Notenschluesselaufteilung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Notenschluesselaufteilung/Notenschluesselaufteilung", array("notenschluesselaufteilung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NotenschluesseluebungCept.php b/tests/codeception/tests/api/v1/NotenschluesseluebungCept.php new file mode 100644 index 000000000..4ba0d7421 --- /dev/null +++ b/tests/codeception/tests/api/v1/NotenschluesseluebungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Notenschluesseluebung/Notenschluesseluebung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Notenschluesseluebung/Notenschluesseluebung", array("note" => "0", "uebung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NotenschluesselzuordnungCept.php b/tests/codeception/tests/api/v1/NotenschluesselzuordnungCept.php new file mode 100644 index 000000000..0e518be13 --- /dev/null +++ b/tests/codeception/tests/api/v1/NotenschluesselzuordnungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Notenschluesselzuordnung/Notenschluesselzuordnung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Notenschluesselzuordnung/Notenschluesselzuordnung", array("notenschluesselzuordnung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NotizCept.php b/tests/codeception/tests/api/v1/NotizCept.php new file mode 100644 index 000000000..e0164feb1 --- /dev/null +++ b/tests/codeception/tests/api/v1/NotizCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/person/Notiz/Notiz"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/person/Notiz/Notiz", array("notiz_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/NotizzuordnungCept.php b/tests/codeception/tests/api/v1/NotizzuordnungCept.php new file mode 100644 index 000000000..b03f6a786 --- /dev/null +++ b/tests/codeception/tests/api/v1/NotizzuordnungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/person/Notizzuordnung/Notizzuordnung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/person/Notizzuordnung/Notizzuordnung", array("notizzuordnung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Organisationseinheit2Cept.php b/tests/codeception/tests/api/v1/Organisationseinheit2Cept.php new file mode 100644 index 000000000..dbe5323f4 --- /dev/null +++ b/tests/codeception/tests/api/v1/Organisationseinheit2Cept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Organisationseinheit2/Organisationseinheit2"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Organisationseinheit2/Organisationseinheit2", array("oe_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/OrganisationseinheittypCept.php b/tests/codeception/tests/api/v1/OrganisationseinheittypCept.php new file mode 100644 index 000000000..44dd483c7 --- /dev/null +++ b/tests/codeception/tests/api/v1/OrganisationseinheittypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Organisationseinheittyp/Organisationseinheittyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Organisationseinheittyp/Organisationseinheittyp", array("organisationseinheittyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/OrtCept.php b/tests/codeception/tests/api/v1/OrtCept.php new file mode 100644 index 000000000..82a5c30a8 --- /dev/null +++ b/tests/codeception/tests/api/v1/OrtCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Ort/Ort"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Ort/Ort", array("ort_kurzbz" => "0", "raumtyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/OrtraumtypCept.php b/tests/codeception/tests/api/v1/OrtraumtypCept.php new file mode 100644 index 000000000..bac035007 --- /dev/null +++ b/tests/codeception/tests/api/v1/OrtraumtypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Ortraumtyp/Ortraumtyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Ortraumtyp/Ortraumtyp", array("hierarchie" => "0", "ort_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PaabgabeCept.php b/tests/codeception/tests/api/v1/PaabgabeCept.php new file mode 100644 index 000000000..38d6833e2 --- /dev/null +++ b/tests/codeception/tests/api/v1/PaabgabeCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Paabgabe/Paabgabe"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Paabgabe/Paabgabe", array("paabgabe_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PaabgabetypCept.php b/tests/codeception/tests/api/v1/PaabgabetypCept.php new file mode 100644 index 000000000..24daf1227 --- /dev/null +++ b/tests/codeception/tests/api/v1/PaabgabetypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Paabgabetyp/Paabgabetyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Paabgabetyp/Paabgabetyp", array("paabgabetyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PersonfunktionstandortCept.php b/tests/codeception/tests/api/v1/PersonfunktionstandortCept.php new file mode 100644 index 000000000..94478b045 --- /dev/null +++ b/tests/codeception/tests/api/v1/PersonfunktionstandortCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Personfunktionstandort/Personfunktionstandort"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Personfunktionstandort/Personfunktionstandort", array("personfunktionstandort_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PhraseCept.php b/tests/codeception/tests/api/v1/PhraseCept.php new file mode 100644 index 000000000..ad887988d --- /dev/null +++ b/tests/codeception/tests/api/v1/PhraseCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Phrase/Phrase"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Phrase/Phrase", array("phrase_id" => "0", "app" => "0", "sprache" => "0", "phrase" => "0", "orgeinheit_kurzbz" => "0", "orgform_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PreincomingCept.php b/tests/codeception/tests/api/v1/PreincomingCept.php new file mode 100644 index 000000000..bd8449b22 --- /dev/null +++ b/tests/codeception/tests/api/v1/PreincomingCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Preincoming/Preincoming"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Preincoming/Preincoming", array("preincoming_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PreinteressentstudiengangCept.php b/tests/codeception/tests/api/v1/PreinteressentstudiengangCept.php new file mode 100644 index 000000000..6e9687350 --- /dev/null +++ b/tests/codeception/tests/api/v1/PreinteressentstudiengangCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Preinteressentstudiengang/Preinteressentstudiengang"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Preinteressentstudiengang/Preinteressentstudiengang", array("preinteressent_id" => "0", "studiengang_kz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PreoutgoingCept.php b/tests/codeception/tests/api/v1/PreoutgoingCept.php new file mode 100644 index 000000000..e0f5d3960 --- /dev/null +++ b/tests/codeception/tests/api/v1/PreoutgoingCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Preoutgoing/Preoutgoing"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Preoutgoing/Preoutgoing", array("preoutgoing_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PrestudentstatusCept.php b/tests/codeception/tests/api/v1/PrestudentstatusCept.php new file mode 100644 index 000000000..c74f30aea --- /dev/null +++ b/tests/codeception/tests/api/v1/PrestudentstatusCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Prestudentstatus/Prestudentstatus"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Prestudentstatus/Prestudentstatus", array("ausbildungssemester" => "0", "studiensemester_kurzbz" => "0", "status_kurzbz" => "0", "prestudent_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ProjektCept.php b/tests/codeception/tests/api/v1/ProjektCept.php new file mode 100644 index 000000000..bcc8f33d4 --- /dev/null +++ b/tests/codeception/tests/api/v1/ProjektCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Projekt/Projekt"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Projekt/Projekt", array("projekt_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Projekt_ressourceCept.php b/tests/codeception/tests/api/v1/Projekt_ressourceCept.php new file mode 100644 index 000000000..9a5bcc56d --- /dev/null +++ b/tests/codeception/tests/api/v1/Projekt_ressourceCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Projekt_ressource/Projekt_ressource"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Projekt_ressource/Projekt_ressource", array("projekt_ressource_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ProjektarbeitCept.php b/tests/codeception/tests/api/v1/ProjektarbeitCept.php new file mode 100644 index 000000000..6627057b6 --- /dev/null +++ b/tests/codeception/tests/api/v1/ProjektarbeitCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Projektarbeit/Projektarbeit"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Projektarbeit/Projektarbeit", array("projektarbeit_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ProjektbetreuerCept.php b/tests/codeception/tests/api/v1/ProjektbetreuerCept.php new file mode 100644 index 000000000..d6b996126 --- /dev/null +++ b/tests/codeception/tests/api/v1/ProjektbetreuerCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Projektbetreuer/Projektbetreuer"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Projektbetreuer/Projektbetreuer", array("betreuerart_kurzbz" => "0", "projektarbeit_id" => "0", "person_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ProjektphaseCept.php b/tests/codeception/tests/api/v1/ProjektphaseCept.php new file mode 100644 index 000000000..f14e76261 --- /dev/null +++ b/tests/codeception/tests/api/v1/ProjektphaseCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Projektphase/Projektphase"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Projektphase/Projektphase", array("projektphase_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ProjekttaskCept.php b/tests/codeception/tests/api/v1/ProjekttaskCept.php new file mode 100644 index 000000000..a46eeb185 --- /dev/null +++ b/tests/codeception/tests/api/v1/ProjekttaskCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Projekttask/Projekttask"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Projekttask/Projekttask", array("projekttask_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ProjekttypCept.php b/tests/codeception/tests/api/v1/ProjekttypCept.php new file mode 100644 index 000000000..8a2ab0862 --- /dev/null +++ b/tests/codeception/tests/api/v1/ProjekttypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Projekttyp/Projekttyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Projekttyp/Projekttyp", array("projekttyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PrueflingCept.php b/tests/codeception/tests/api/v1/PrueflingCept.php new file mode 100644 index 000000000..95bc5b641 --- /dev/null +++ b/tests/codeception/tests/api/v1/PrueflingCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/testtool/Pruefling/Pruefling"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/testtool/Pruefling/Pruefling", array("pruefling_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PruefungCept.php b/tests/codeception/tests/api/v1/PruefungCept.php new file mode 100644 index 000000000..b3aa808e9 --- /dev/null +++ b/tests/codeception/tests/api/v1/PruefungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Pruefung/Pruefung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Pruefung/Pruefung", array("pruefung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PruefungsanmeldungCept.php b/tests/codeception/tests/api/v1/PruefungsanmeldungCept.php new file mode 100644 index 000000000..2d08a28c0 --- /dev/null +++ b/tests/codeception/tests/api/v1/PruefungsanmeldungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Pruefungsanmeldung/Pruefungsanmeldung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Pruefungsanmeldung/Pruefungsanmeldung", array("pruefungsanmeldung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PruefungsfensterCept.php b/tests/codeception/tests/api/v1/PruefungsfensterCept.php new file mode 100644 index 000000000..a4448199a --- /dev/null +++ b/tests/codeception/tests/api/v1/PruefungsfensterCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Pruefungsfenster/Pruefungsfenster"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Pruefungsfenster/Pruefungsfenster", array("pruefungsfenster_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PruefungsstatusCept.php b/tests/codeception/tests/api/v1/PruefungsstatusCept.php new file mode 100644 index 000000000..db35ac23a --- /dev/null +++ b/tests/codeception/tests/api/v1/PruefungsstatusCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Pruefungsstatus/Pruefungsstatus"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Pruefungsstatus/Pruefungsstatus", array("status_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PruefungsterminCept.php b/tests/codeception/tests/api/v1/PruefungsterminCept.php new file mode 100644 index 000000000..92ac71544 --- /dev/null +++ b/tests/codeception/tests/api/v1/PruefungsterminCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Pruefungstermin/Pruefungstermin"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Pruefungstermin/Pruefungstermin", array("pruefungstermin_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/PruefungstypCept.php b/tests/codeception/tests/api/v1/PruefungstypCept.php new file mode 100644 index 000000000..81af9d187 --- /dev/null +++ b/tests/codeception/tests/api/v1/PruefungstypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Pruefungstyp/Pruefungstyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Pruefungstyp/Pruefungstyp", array("pruefungstyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RaumtypCept.php b/tests/codeception/tests/api/v1/RaumtypCept.php new file mode 100644 index 000000000..d4fac70cf --- /dev/null +++ b/tests/codeception/tests/api/v1/RaumtypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Raumtyp/Raumtyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Raumtyp/Raumtyp", array("raumtyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RechnungCept.php b/tests/codeception/tests/api/v1/RechnungCept.php new file mode 100644 index 000000000..98ba8687f --- /dev/null +++ b/tests/codeception/tests/api/v1/RechnungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Rechnung/Rechnung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Rechnung/Rechnung", array("rechnung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RechnungsbetragCept.php b/tests/codeception/tests/api/v1/RechnungsbetragCept.php new file mode 100644 index 000000000..d954363b2 --- /dev/null +++ b/tests/codeception/tests/api/v1/RechnungsbetragCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Rechnungsbetrag/Rechnungsbetrag"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Rechnungsbetrag/Rechnungsbetrag", array("rechnungsbetrag_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RechnungstypCept.php b/tests/codeception/tests/api/v1/RechnungstypCept.php new file mode 100644 index 000000000..be2a77218 --- /dev/null +++ b/tests/codeception/tests/api/v1/RechnungstypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Rechnungstyp/Rechnungstyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Rechnungstyp/Rechnungstyp", array("rechnungstyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ReihungstestCept.php b/tests/codeception/tests/api/v1/ReihungstestCept.php new file mode 100644 index 000000000..9959115ad --- /dev/null +++ b/tests/codeception/tests/api/v1/ReihungstestCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Reihungstest/Reihungstest"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Reihungstest/Reihungstest", array("reihungstest_id" => "0", "studiengang_kz" => "0", "studiensemester_kurzbz" => "0", "person_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ReservierungCept.php b/tests/codeception/tests/api/v1/ReservierungCept.php new file mode 100644 index 000000000..31c82e659 --- /dev/null +++ b/tests/codeception/tests/api/v1/ReservierungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Reservierung/Reservierung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Reservierung/Reservierung", array("reservierung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RessourceCept.php b/tests/codeception/tests/api/v1/RessourceCept.php new file mode 100644 index 000000000..426911e56 --- /dev/null +++ b/tests/codeception/tests/api/v1/RessourceCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Ressource/Ressource"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Ressource/Ressource", array("ressource_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ResturlaubCept.php b/tests/codeception/tests/api/v1/ResturlaubCept.php new file mode 100644 index 000000000..8fdb4e371 --- /dev/null +++ b/tests/codeception/tests/api/v1/ResturlaubCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Resturlaub/Resturlaub"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Resturlaub/Resturlaub", array("resturlaub_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RolleCept.php b/tests/codeception/tests/api/v1/RolleCept.php new file mode 100644 index 000000000..ddbb2874a --- /dev/null +++ b/tests/codeception/tests/api/v1/RolleCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Rolle/Rolle"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Rolle/Rolle", array("rolle_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/RolleberechtigungCept.php b/tests/codeception/tests/api/v1/RolleberechtigungCept.php new file mode 100644 index 000000000..f4c2ee79e --- /dev/null +++ b/tests/codeception/tests/api/v1/RolleberechtigungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Rolleberechtigung/Rolleberechtigung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Rolleberechtigung/Rolleberechtigung", array("rolle_kurzbz" => "0", "berechtigung_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ScrumsprintCept.php b/tests/codeception/tests/api/v1/ScrumsprintCept.php new file mode 100644 index 000000000..07012e095 --- /dev/null +++ b/tests/codeception/tests/api/v1/ScrumsprintCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Scrumsprint/Scrumsprint"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Scrumsprint/Scrumsprint", array("scrumsprint_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ScrumteamCept.php b/tests/codeception/tests/api/v1/ScrumteamCept.php new file mode 100644 index 000000000..583519757 --- /dev/null +++ b/tests/codeception/tests/api/v1/ScrumteamCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/project/Scrumteam/Scrumteam"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/project/Scrumteam/Scrumteam", array("scrumteam_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/SemesterwochenCept.php b/tests/codeception/tests/api/v1/SemesterwochenCept.php new file mode 100644 index 000000000..f17faffb3 --- /dev/null +++ b/tests/codeception/tests/api/v1/SemesterwochenCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Semesterwochen/Semesterwochen"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Semesterwochen/Semesterwochen", array("studiengang_kz" => "0", "semester" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ServerCept.php b/tests/codeception/tests/api/v1/ServerCept.php new file mode 100644 index 000000000..53e09c574 --- /dev/null +++ b/tests/codeception/tests/api/v1/ServerCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Server/Server"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Server/Server", array("server_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ServiceCept.php b/tests/codeception/tests/api/v1/ServiceCept.php new file mode 100644 index 000000000..0f3bab9bc --- /dev/null +++ b/tests/codeception/tests/api/v1/ServiceCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Service/Service"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Service/Service", array("service_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Sprache2Cept.php b/tests/codeception/tests/api/v1/Sprache2Cept.php new file mode 100644 index 000000000..59baaaac1 --- /dev/null +++ b/tests/codeception/tests/api/v1/Sprache2Cept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Sprache2/Sprache2"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Sprache2/Sprache2", array("sprache" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StandortCept.php b/tests/codeception/tests/api/v1/StandortCept.php new file mode 100644 index 000000000..354d7d0f4 --- /dev/null +++ b/tests/codeception/tests/api/v1/StandortCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Standort/Standort"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Standort/Standort", array("standort_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StatistikCept.php b/tests/codeception/tests/api/v1/StatistikCept.php new file mode 100644 index 000000000..b820609b9 --- /dev/null +++ b/tests/codeception/tests/api/v1/StatistikCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Statistik/Statistik"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Statistik/Statistik", array("statistik_kurzbz" => "0", "order" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StatusCept.php b/tests/codeception/tests/api/v1/StatusCept.php new file mode 100644 index 000000000..9e96b1b5a --- /dev/null +++ b/tests/codeception/tests/api/v1/StatusCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Status/Status"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Status/Status", array("status_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudentCept.php b/tests/codeception/tests/api/v1/StudentCept.php new file mode 100644 index 000000000..1d2ef3ea1 --- /dev/null +++ b/tests/codeception/tests/api/v1/StudentCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/crm/Student/Student"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/crm/Student/Student", array("student_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudentbeispielCept.php b/tests/codeception/tests/api/v1/StudentbeispielCept.php new file mode 100644 index 000000000..1048cd37d --- /dev/null +++ b/tests/codeception/tests/api/v1/StudentbeispielCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Studentbeispiel/Studentbeispiel"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Studentbeispiel/Studentbeispiel", array("beispiel_id" => "0", "student_uid" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudentlehrverbandCept.php b/tests/codeception/tests/api/v1/StudentlehrverbandCept.php new file mode 100644 index 000000000..1ccc9d3c8 --- /dev/null +++ b/tests/codeception/tests/api/v1/StudentlehrverbandCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Studentlehrverband/Studentlehrverband"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Studentlehrverband/Studentlehrverband", array("studiensemester_kurzbz" => "0", "student_uid" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudentuebungCept.php b/tests/codeception/tests/api/v1/StudentuebungCept.php new file mode 100644 index 000000000..8c1451324 --- /dev/null +++ b/tests/codeception/tests/api/v1/StudentuebungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Studentuebung/Studentuebung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Studentuebung/Studentuebung", array("uebung_id" => "0", "student_uid" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/Studiengang2Cept.php b/tests/codeception/tests/api/v1/Studiengang2Cept.php new file mode 100644 index 000000000..8b6a0033e --- /dev/null +++ b/tests/codeception/tests/api/v1/Studiengang2Cept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Studiengang2/Studiengang2"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Studiengang2/Studiengang2", array("studiengang_kz" => "0", "studiensemester_kurzbz" => "0", "ausbildungssemester" => "0", "aktiv" => "0", "onlinebewerbung" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudiengangstypCept.php b/tests/codeception/tests/api/v1/StudiengangstypCept.php new file mode 100644 index 000000000..c10ae7bf4 --- /dev/null +++ b/tests/codeception/tests/api/v1/StudiengangstypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Studiengangstyp/Studiengangstyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Studiengangstyp/Studiengangstyp", array("typ" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudienjahrCept.php b/tests/codeception/tests/api/v1/StudienjahrCept.php new file mode 100644 index 000000000..dcc707169 --- /dev/null +++ b/tests/codeception/tests/api/v1/StudienjahrCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Studienjahr/Studienjahr"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Studienjahr/Studienjahr", array("studienjahr_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudienordnungCept.php b/tests/codeception/tests/api/v1/StudienordnungCept.php new file mode 100644 index 000000000..49d4307da --- /dev/null +++ b/tests/codeception/tests/api/v1/StudienordnungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Studienordnung/Studienordnung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Studienordnung/Studienordnung", array("studienordnung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudienordnungstatusCept.php b/tests/codeception/tests/api/v1/StudienordnungstatusCept.php new file mode 100644 index 000000000..75887ce69 --- /dev/null +++ b/tests/codeception/tests/api/v1/StudienordnungstatusCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Studienordnungstatus/Studienordnungstatus"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Studienordnungstatus/Studienordnungstatus", array("status_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StudienplatzCept.php b/tests/codeception/tests/api/v1/StudienplatzCept.php new file mode 100644 index 000000000..112adb2db --- /dev/null +++ b/tests/codeception/tests/api/v1/StudienplatzCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/organisation/Studienplatz/Studienplatz"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/organisation/Studienplatz/Studienplatz", array("studienplatz_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StundeCept.php b/tests/codeception/tests/api/v1/StundeCept.php new file mode 100644 index 000000000..c5908f35b --- /dev/null +++ b/tests/codeception/tests/api/v1/StundeCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Stunde/Stunde"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Stunde/Stunde", array("stunde" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StundenplanCept.php b/tests/codeception/tests/api/v1/StundenplanCept.php new file mode 100644 index 000000000..d5218a5cc --- /dev/null +++ b/tests/codeception/tests/api/v1/StundenplanCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Stundenplan/Stundenplan"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Stundenplan/Stundenplan", array("stundenplan_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/StundenplandevCept.php b/tests/codeception/tests/api/v1/StundenplandevCept.php new file mode 100644 index 000000000..3b343aa8c --- /dev/null +++ b/tests/codeception/tests/api/v1/StundenplandevCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Stundenplandev/Stundenplandev"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Stundenplandev/Stundenplandev", array("stundenplandev_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/TagCept.php b/tests/codeception/tests/api/v1/TagCept.php new file mode 100644 index 000000000..0889325eb --- /dev/null +++ b/tests/codeception/tests/api/v1/TagCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Tag/Tag"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Tag/Tag", array("tag" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/TemplateCept.php b/tests/codeception/tests/api/v1/TemplateCept.php new file mode 100644 index 000000000..4d0e814c0 --- /dev/null +++ b/tests/codeception/tests/api/v1/TemplateCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/content/Template/Template"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/content/Template/Template", array("template_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ThreadCept.php b/tests/codeception/tests/api/v1/ThreadCept.php new file mode 100644 index 000000000..86d7e06ec --- /dev/null +++ b/tests/codeception/tests/api/v1/ThreadCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Thread/Thread"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Thread/Thread", array("thread_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/UebungCept.php b/tests/codeception/tests/api/v1/UebungCept.php new file mode 100644 index 000000000..5cb3c63ad --- /dev/null +++ b/tests/codeception/tests/api/v1/UebungCept.php @@ -0,0 +1,11 @@ +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]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VariableCept.php b/tests/codeception/tests/api/v1/VariableCept.php new file mode 100644 index 000000000..a32b9538d --- /dev/null +++ b/tests/codeception/tests/api/v1/VariableCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Variable/Variable"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Variable/Variable", array("uid" => "0", "name" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VeranstaltungCept.php b/tests/codeception/tests/api/v1/VeranstaltungCept.php new file mode 100644 index 000000000..c7bf63c51 --- /dev/null +++ b/tests/codeception/tests/api/v1/VeranstaltungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/content/Veranstaltung/Veranstaltung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/content/Veranstaltung/Veranstaltung", array("veranstaltung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VeranstaltungskategorieCept.php b/tests/codeception/tests/api/v1/VeranstaltungskategorieCept.php new file mode 100644 index 000000000..6a6e4c504 --- /dev/null +++ b/tests/codeception/tests/api/v1/VeranstaltungskategorieCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/content/Veranstaltungskategorie/Veranstaltungskategorie"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/content/Veranstaltungskategorie/Veranstaltungskategorie", array("veranstaltungskategorie_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VertragCept.php b/tests/codeception/tests/api/v1/VertragCept.php new file mode 100644 index 000000000..bf3a6a879 --- /dev/null +++ b/tests/codeception/tests/api/v1/VertragCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Vertrag/Vertrag"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Vertrag/Vertrag", array("vertrag_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VertragsstatusCept.php b/tests/codeception/tests/api/v1/VertragsstatusCept.php new file mode 100644 index 000000000..7ecc2b4ed --- /dev/null +++ b/tests/codeception/tests/api/v1/VertragsstatusCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Vertragsstatus/Vertragsstatus"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Vertragsstatus/Vertragsstatus", array("vertragsstatus_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VertragstypCept.php b/tests/codeception/tests/api/v1/VertragstypCept.php new file mode 100644 index 000000000..b0a30f7db --- /dev/null +++ b/tests/codeception/tests/api/v1/VertragstypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Vertragstyp/Vertragstyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Vertragstyp/Vertragstyp", array("vertragstyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VerwendungCept.php b/tests/codeception/tests/api/v1/VerwendungCept.php new file mode 100644 index 000000000..1794f2e18 --- /dev/null +++ b/tests/codeception/tests/api/v1/VerwendungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Verwendung/Verwendung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Verwendung/Verwendung", array("verwendung_code" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VorlageCept.php b/tests/codeception/tests/api/v1/VorlageCept.php new file mode 100644 index 000000000..02f550f52 --- /dev/null +++ b/tests/codeception/tests/api/v1/VorlageCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Vorlage/Vorlage"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Vorlage/Vorlage", array("vorlage_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VorlagestudiengangCept.php b/tests/codeception/tests/api/v1/VorlagestudiengangCept.php new file mode 100644 index 000000000..53efc7e55 --- /dev/null +++ b/tests/codeception/tests/api/v1/VorlagestudiengangCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Vorlagestudiengang/Vorlagestudiengang"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Vorlagestudiengang/Vorlagestudiengang", array("vorlagestudiengang_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/VorschlagCept.php b/tests/codeception/tests/api/v1/VorschlagCept.php new file mode 100644 index 000000000..d103d0135 --- /dev/null +++ b/tests/codeception/tests/api/v1/VorschlagCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/testtool/Vorschlag/Vorschlag"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/testtool/Vorschlag/Vorschlag", array("vorschlag_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/WebservicelogCept.php b/tests/codeception/tests/api/v1/WebservicelogCept.php new file mode 100644 index 000000000..236449e82 --- /dev/null +++ b/tests/codeception/tests/api/v1/WebservicelogCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Webservicelog/Webservicelog"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Webservicelog/Webservicelog", array("webservicelog_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/WebservicerechtCept.php b/tests/codeception/tests/api/v1/WebservicerechtCept.php new file mode 100644 index 000000000..0e919ab5a --- /dev/null +++ b/tests/codeception/tests/api/v1/WebservicerechtCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Webservicerecht/Webservicerecht"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Webservicerecht/Webservicerecht", array("webservicerecht_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/WebservicetypCept.php b/tests/codeception/tests/api/v1/WebservicetypCept.php new file mode 100644 index 000000000..e7957bf96 --- /dev/null +++ b/tests/codeception/tests/api/v1/WebservicetypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/Webservicetyp/Webservicetyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/Webservicetyp/Webservicetyp", array("webservicetyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZahlungstypCept.php b/tests/codeception/tests/api/v1/ZahlungstypCept.php new file mode 100644 index 000000000..c5a91df9c --- /dev/null +++ b/tests/codeception/tests/api/v1/ZahlungstypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/accounting/Zahlungstyp/Zahlungstyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/accounting/Zahlungstyp/Zahlungstyp", array("zahlungstyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeitaufzeichnungCept.php b/tests/codeception/tests/api/v1/ZeitaufzeichnungCept.php new file mode 100644 index 000000000..bc34409a9 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeitaufzeichnungCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Zeitaufzeichnung/Zeitaufzeichnung"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Zeitaufzeichnung/Zeitaufzeichnung", array("zeitaufzeichnung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeitfensterCept.php b/tests/codeception/tests/api/v1/ZeitfensterCept.php new file mode 100644 index 000000000..5024bb510 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeitfensterCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Zeitfenster/Zeitfenster"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Zeitfenster/Zeitfenster", array("wochentag" => "0", "studiengang_kz" => "0", "ort_kurzbz" => "0", "stunde" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeitsperreCept.php b/tests/codeception/tests/api/v1/ZeitsperreCept.php new file mode 100644 index 000000000..8b3becaa1 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeitsperreCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Zeitsperre/Zeitsperre"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Zeitsperre/Zeitsperre", array("zeitsperre_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeitsperretypCept.php b/tests/codeception/tests/api/v1/ZeitsperretypCept.php new file mode 100644 index 000000000..49608a811 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeitsperretypCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Zeitsperretyp/Zeitsperretyp"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Zeitsperretyp/Zeitsperretyp", array("zeitsperretyp_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeitwunschCept.php b/tests/codeception/tests/api/v1/ZeitwunschCept.php new file mode 100644 index 000000000..9f9fae25a --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeitwunschCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/ressource/Zeitwunsch/Zeitwunsch"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/ressource/Zeitwunsch/Zeitwunsch", array("tag" => "0", "mitarbeiter_uid" => "0", "stunde" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeugnisCept.php b/tests/codeception/tests/api/v1/ZeugnisCept.php new file mode 100644 index 000000000..f4f089cc4 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeugnisCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Zeugnis/Zeugnis"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Zeugnis/Zeugnis", array("zeugnis_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZeugnisnoteCept.php b/tests/codeception/tests/api/v1/ZeugnisnoteCept.php new file mode 100644 index 000000000..1cd9e42a1 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZeugnisnoteCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/education/Zeugnisnote/Zeugnisnote"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/education/Zeugnisnote/Zeugnisnote", array("studiensemester_kurzbz" => "0", "student_uid" => "0", "lehrveranstaltung_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZgvCept.php b/tests/codeception/tests/api/v1/ZgvCept.php new file mode 100644 index 000000000..1d23ca1e9 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZgvCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Zgv/Zgv"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Zgv/Zgv", array("zgv_code" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZgvdoktorCept.php b/tests/codeception/tests/api/v1/ZgvdoktorCept.php new file mode 100644 index 000000000..134a4ef20 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZgvdoktorCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Zgvdoktor/Zgvdoktor"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Zgvdoktor/Zgvdoktor", array("zgvdoktor_code" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZgvgruppeCept.php b/tests/codeception/tests/api/v1/ZgvgruppeCept.php new file mode 100644 index 000000000..20ef1c5a2 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZgvgruppeCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Zgvgruppe/Zgvgruppe"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Zgvgruppe/Zgvgruppe", array("gruppe_kurzbz" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZgvmasterCept.php b/tests/codeception/tests/api/v1/ZgvmasterCept.php new file mode 100644 index 000000000..b7fda5c59 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZgvmasterCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Zgvmaster/Zgvmaster"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Zgvmaster/Zgvmaster", array("zgvmas_code" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/ZweckCept.php b/tests/codeception/tests/api/v1/ZweckCept.php new file mode 100644 index 000000000..0bdde12a0 --- /dev/null +++ b/tests/codeception/tests/api/v1/ZweckCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/codex/Zweck/Zweck"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/codex/Zweck/Zweck", array("zweck_code" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file diff --git a/tests/codeception/tests/api/v1/message_oldCept.php b/tests/codeception/tests/api/v1/message_oldCept.php new file mode 100644 index 000000000..8c1f9453d --- /dev/null +++ b/tests/codeception/tests/api/v1/message_oldCept.php @@ -0,0 +1,11 @@ +wantTo("Test API call v1/system/message_old/message_old"); +$I->amHttpAuthenticated("admin", "1q2w3"); +$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org"); + +$I->sendGET("v1/system/message_old/message_old", array("message_old_id" => "0")); +$I->seeResponseCodeIs(200); +$I->seeResponseIsJson(); +$I->seeResponseContainsJson(["error" => 0]); \ No newline at end of file