From 8cb8c4da6485e1625b1c0648f14d5101e0a9ca20 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Thu, 4 Nov 2021 10:27:21 +0100 Subject: [PATCH 01/32] Erweiterung Funktion checkKontostand() --- include/konto.class.php | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/include/konto.class.php b/include/konto.class.php index 09afa5303..f5de5b439 100644 --- a/include/konto.class.php +++ b/include/konto.class.php @@ -553,31 +553,38 @@ class konto extends basis_db /** * Überprüft, ob das Konto einer Person ausgeglichen ist, oder ob noch Zahlungen offen sind - * @param $person_id ID der Person, die geprüft werden soll - * @return true wenn ausgeglichen, false wenn Zahlungen offen, false mit errormsg wenn ein Fehler aufgetreten ist + * @param int $person_id ID der Person, die geprüft werden soll. + * @param bool $aktuelleBuchungenOnly True, wenn nur Zahlungen mit Buchungsdatum <= aktuelles Datum berücksichtigt werden sollen. + * @return boolean true wenn ausgeglichen, false wenn Zahlungen offen, false mit errormsg wenn ein Fehler aufgetreten ist */ - public function checkKontostand($person_id) + public function checkKontostand($person_id, $aktuelleBuchungenOnly = false) { - $qry="SELECT sum(betrag) as summe FROM public.tbl_konto WHERE person_id=".$this->db_add_param($person_id); - if($result=$this->db_query($qry)) + $qry = "SELECT sum(betrag) as summe + FROM public.tbl_konto + WHERE person_id=".$this->db_add_param($person_id); + + if($aktuelleBuchungenOnly) + $qry .= " AND buchungsdatum <= now()"; + + if ($result = $this->db_query($qry)) { - if($row=$this->db_fetch_object()) + if ($row = $this->db_fetch_object()) { - if($row->summe>=0) + if ($row->summe >= 0) return true; else return false; } else { + $this->errormsg = "Fehler beim Holen der Daten"; return false; - $this->errormsg="Fehler beim Holen der Daten"; } } else { + $this->errormsg = "Fehler bei der Datenbankabfrage"; return false; - $this->errormsg="Fehler bei der Datenbankabfrage"; } } From 70c24899d03cbe061734f6ad6c92b2d601a18ed9 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Tue, 9 Nov 2021 09:32:05 +0100 Subject: [PATCH 02/32] =?UTF-8?q?Verhalten=20MessageAnOEs=20f=C3=BCr=20Mas?= =?UTF-8?q?ter=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/crm/Prestudent_model.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/application/models/crm/Prestudent_model.php b/application/models/crm/Prestudent_model.php index 2d8ac4a7e..3038b62cc 100644 --- a/application/models/crm/Prestudent_model.php +++ b/application/models/crm/Prestudent_model.php @@ -560,7 +560,7 @@ class Prestudent_model extends DB_Model o.bezeichnung, (CASE WHEN sg.typ = \'b\' THEN ps.prestudent_id - WHEN sg.typ = \'m\' THEN p.prestudent_id + WHEN sg.typ = \'m\' THEN ps.prestudent_id ELSE NULL END) AS prestudent_id FROM public.tbl_prestudent p @@ -581,7 +581,7 @@ class Prestudent_model extends DB_Model return $this->execQuery($query, array($person_id)); } - + /** * Get latest ZGV Bezeichnung of Prestudent. * @@ -593,19 +593,19 @@ class Prestudent_model extends DB_Model { show_error('Prestudent_id is not numeric.'); } - + $language_index = getUserLanguage() == 'German' ? 0 : 1; - + $this->addSelect(' COALESCE( array_to_json(zgvmaster.bezeichnung::varchar[])->>' . $language_index . ', array_to_json(zgv.bezeichnung::varchar[])->>' . $language_index . ' ) AS bezeichnung' ); - + $this->addJoin('bis.tbl_zgv zgv', 'zgv_code', 'LEFT'); $this->addJoin('bis.tbl_zgvmaster zgvmaster', 'zgvmas_code', 'LEFT'); - + return $this->loadWhere(array( 'prestudent_id' => $prestudent_id )); @@ -629,7 +629,7 @@ class Prestudent_model extends DB_Model $query .= " NOT EXISTS"; $query .= " (SELECT 1 FROM public.tbl_prestudentstatus spss - JOIN public.tbl_prestudent sps USING(prestudent_id) + JOIN public.tbl_prestudent sps USING(prestudent_id) WHERE sps.prestudent_id = ps.prestudent_id AND spss.bewerbung_abgeschicktamum IS NOT NULL)"; From d9aa24cced18e9533240be18c5671cf563accf00 Mon Sep 17 00:00:00 2001 From: Paolo Date: Thu, 10 Feb 2022 11:42:39 +0100 Subject: [PATCH 03/32] - Removed phpci.yml file - Removed tests/codeception/ directory - Changed tests/codesniffer/FHComplete/ruleset.xml - Removed tests/codesniffer/FHComplete/Sniffs - Removed tests/codesniffer/FHComplete/tests - Added tests/phpmd/rulesets.xml --- phpci.yml | 127 - tests/codeception/_bootstrap.php | 2 - tests/codeception/_data/.placeholder | 0 tests/codeception/_output/.placeholder | 0 .../codeception/_support/AcceptanceTester.php | 26 - tests/codeception/_support/ApiTester.php | 39 - .../codeception/_support/FunctionalTester.php | 26 - tests/codeception/_support/UnitTester.php | 25 - .../_generated/AcceptanceTesterActions.php | 2436 ----------------- .../_support/_generated/ApiTesterActions.php | 1382 ---------- .../_generated/FunctionalTesterActions.php | 204 -- .../_support/_generated/UnitTesterActions.php | 204 -- tests/codeception/codeception.dist.yml | 27 - .../tests/acceptance.suite.yml.dist | 21 - .../tests/acceptance/CISLoginPage.php | 6 - .../acceptance/VileSciSearchPersonCept.php | 11 - .../tests/acceptance/VileSciStartPage.php | 26 - .../tests/acceptance/_bootstrap.php | 2 - tests/codeception/tests/api.suite.yml.dist | 20 - tests/codeception/tests/api/_bootstrap.php | 2 - tests/codeception/tests/api/generate.php | 178 -- tests/codeception/tests/api/template_call.tpl | 5 - tests/codeception/tests/api/template_head.tpl | 6 - .../tests/api/v1/AccountingAufteilungCept.php | 11 - .../api/v1/AccountingBestelldetailCept.php | 11 - .../api/v1/AccountingBestelldetailtagCept.php | 11 - .../api/v1/AccountingBestellstatusCept.php | 11 - .../tests/api/v1/AccountingBestellungCept.php | 11 - .../api/v1/AccountingBestellungtagCept.php | 11 - .../tests/api/v1/AccountingBuchungCept.php | 11 - .../api/v1/AccountingBuchungstypCept.php | 11 - .../tests/api/v1/AccountingBudgetCept.php | 11 - .../tests/api/v1/AccountingKontoCept.php | 11 - .../api/v1/AccountingKostenstelleCept.php | 11 - .../tests/api/v1/AccountingRechnungCept.php | 11 - .../api/v1/AccountingRechnungsbetragCept.php | 11 - .../api/v1/AccountingRechnungstypCept.php | 11 - .../tests/api/v1/AccountingVertragCept.php | 11 - .../api/v1/AccountingVertragsstatusCept.php | 11 - .../api/v1/AccountingVertragstypCept.php | 11 - .../api/v1/AccountingZahlungstypCept.php | 11 - .../tests/api/v1/CheckUserAuthCept.php | 11 - .../tests/api/v1/CodexAkadgradCept.php | 11 - .../tests/api/v1/CodexArchivCept.php | 11 - .../tests/api/v1/CodexAufmerksamdurchCept.php | 11 - .../tests/api/v1/CodexAusbildungCept.php | 11 - .../api/v1/CodexBerufstaetigkeitCept.php | 11 - .../v1/CodexBeschaeftigungsausmassCept.php | 11 - .../tests/api/v1/CodexBesqualCept.php | 11 - .../tests/api/v1/CodexBisfunktionCept.php | 11 - .../tests/api/v1/CodexBisioCept.php | 11 - .../tests/api/v1/CodexBisorgformCept.php | 11 - .../tests/api/v1/CodexBisverwendungCept.php | 11 - .../tests/api/v1/CodexBundeslandCept.php | 11 - .../api/v1/CodexEntwicklungsteamCept.php | 11 - .../tests/api/v1/CodexGemeindeCept.php | 16 - .../tests/api/v1/CodexHauptberufCept.php | 11 - .../tests/api/v1/CodexLehrformCept.php | 11 - .../tests/api/v1/CodexLgartcodeCept.php | 11 - .../api/v1/CodexMobilitaetsprogrammCept.php | 11 - .../tests/api/v1/CodexNationCept.php | 16 - .../tests/api/v1/CodexNoteCept.php | 11 - .../tests/api/v1/CodexOrgformCept.php | 21 - .../tests/api/v1/CodexVerwendungCept.php | 11 - .../codeception/tests/api/v1/CodexZgvCept.php | 11 - .../tests/api/v1/CodexZgvdoktorCept.php | 11 - .../tests/api/v1/CodexZgvgruppeCept.php | 11 - .../tests/api/v1/CodexZgvmasterCept.php | 11 - .../tests/api/v1/CodexZweckCept.php | 11 - .../tests/api/v1/ContentAmpelCept.php | 11 - .../tests/api/v1/ContentContentCept.php | 11 - .../tests/api/v1/ContentContentchildCept.php | 11 - .../tests/api/v1/ContentContentgruppeCept.php | 11 - .../tests/api/v1/ContentContentlogCept.php | 11 - .../api/v1/ContentContentspracheCept.php | 11 - .../tests/api/v1/ContentDmsCept.php | 11 - .../tests/api/v1/ContentInfoscreenCept.php | 11 - .../tests/api/v1/ContentNewsCept.php | 11 - .../tests/api/v1/ContentTemplateCept.php | 11 - .../tests/api/v1/ContentVeranstaltungCept.php | 11 - .../v1/ContentVeranstaltungskategorieCept.php | 11 - .../codeception/tests/api/v1/CrmAkteCept.php | 21 - .../api/v1/CrmAufnahmeschluesselCept.php | 11 - .../tests/api/v1/CrmAufnahmeterminCept.php | 11 - .../tests/api/v1/CrmAufnahmetermintypCept.php | 11 - .../tests/api/v1/CrmBewerbungstermineCept.php | 26 - .../tests/api/v1/CrmBuchungstypCept.php | 11 - .../tests/api/v1/CrmDokumentCept.php | 11 - .../api/v1/CrmDokumentprestudentCept.php | 11 - .../api/v1/CrmDokumentstudiengangCept.php | 16 - .../codeception/tests/api/v1/CrmKontoCept.php | 11 - .../tests/api/v1/CrmPreincomingCept.php | 11 - .../tests/api/v1/CrmPreinteressentCept.php | 16 - .../v1/CrmPreinteressentstudiengangCept.php | 11 - .../tests/api/v1/CrmPreoutgoingCept.php | 11 - .../tests/api/v1/CrmPrestudentCept.php | 21 - .../tests/api/v1/CrmPrestudentstatusCept.php | 16 - .../tests/api/v1/CrmReihungstestCept.php | 21 - .../tests/api/v1/CrmRtPersonCept.php | 11 - .../tests/api/v1/CrmStatusCept.php | 11 - .../tests/api/v1/CrmStatusgrundCept.php | 11 - .../tests/api/v1/CrmStudentCept.php | 11 - .../tests/api/v1/EducationAbgabeCept.php | 11 - .../v1/EducationAbschlussbeurteilungCept.php | 11 - .../api/v1/EducationAbschlusspruefungCept.php | 11 - .../tests/api/v1/EducationAnrechnungCept.php | 11 - .../tests/api/v1/EducationAnwesenheitCept.php | 11 - .../tests/api/v1/EducationBeispielCept.php | 11 - .../tests/api/v1/EducationBetreuerartCept.php | 11 - .../tests/api/v1/EducationFeedbackCept.php | 11 - .../api/v1/EducationLegesamtnoteCept.php | 11 - .../tests/api/v1/EducationLehreinheitCept.php | 11 - .../api/v1/EducationLehreinheitgruppeCept.php | 11 - .../EducationLehreinheitmitarbeiterCept.php | 11 - .../tests/api/v1/EducationLehrfachCept.php | 11 - .../api/v1/EducationLehrfunktionCept.php | 11 - .../tests/api/v1/EducationLehrtypCept.php | 11 - .../api/v1/EducationLehrveranstaltungCept.php | 11 - .../api/v1/EducationLenotenschluesselCept.php | 11 - .../tests/api/v1/EducationLepruefungCept.php | 11 - .../tests/api/v1/EducationLvangebotCept.php | 11 - .../api/v1/EducationLvgesamtnoteCept.php | 11 - .../tests/api/v1/EducationLvinfoCept.php | 11 - .../tests/api/v1/EducationLvregelCept.php | 11 - .../tests/api/v1/EducationLvregeltypCept.php | 11 - .../api/v1/EducationNotenschluesselCept.php | 11 - ...EducationNotenschluesselaufteilungCept.php | 11 - .../v1/EducationNotenschluesseluebungCept.php | 11 - .../EducationNotenschluesselzuordnungCept.php | 11 - .../tests/api/v1/EducationPaabgabeCept.php | 11 - .../tests/api/v1/EducationPaabgabetypCept.php | 11 - .../api/v1/EducationProjektarbeitCept.php | 11 - .../api/v1/EducationProjektbetreuerCept.php | 11 - .../tests/api/v1/EducationProjekttypCept.php | 11 - .../tests/api/v1/EducationPruefungCept.php | 11 - .../v1/EducationPruefungsanmeldungCept.php | 11 - .../api/v1/EducationPruefungsfensterCept.php | 11 - .../api/v1/EducationPruefungsstatusCept.php | 11 - .../api/v1/EducationPruefungsterminCept.php | 11 - .../api/v1/EducationPruefungstypCept.php | 11 - .../api/v1/EducationStudentbeispielCept.php | 11 - .../v1/EducationStudentlehrverbandCept.php | 11 - .../api/v1/EducationStudentuebungCept.php | 11 - .../tests/api/v1/EducationUebungCept.php | 11 - .../tests/api/v1/EducationZeugnisCept.php | 11 - .../tests/api/v1/EducationZeugnisnoteCept.php | 11 - .../tests/api/v1/OrganisationErhalterCept.php | 11 - .../api/v1/OrganisationFachbereich2Cept.php | 11 - .../tests/api/v1/OrganisationFerienCept.php | 11 - .../v1/OrganisationGeschaeftsjahr2Cept.php | 11 - .../tests/api/v1/OrganisationGruppeCept.php | 11 - .../api/v1/OrganisationLehrverbandCept.php | 11 - .../OrganisationOrganisationseinheit2Cept.php | 11 - ...rganisationOrganisationseinheittypCept.php | 11 - .../api/v1/OrganisationSemesterwochenCept.php | 11 - .../tests/api/v1/OrganisationServiceCept.php | 11 - .../tests/api/v1/OrganisationStandortCept.php | 11 - .../api/v1/OrganisationStatistikCept.php | 21 - .../api/v1/OrganisationStudiengang2Cept.php | 26 - .../v1/OrganisationStudiengangstypCept.php | 11 - .../api/v1/OrganisationStudienjahrCept.php | 11 - .../api/v1/OrganisationStudienordnungCept.php | 11 - .../OrganisationStudienordnungstatusCept.php | 11 - .../api/v1/OrganisationStudienplanCept.php | 21 - .../api/v1/OrganisationStudienplatzCept.php | 11 - .../v1/OrganisationStudiensemesterCept.php | 61 - .../tests/api/v1/PersonAdresseCept.php | 11 - .../tests/api/v1/PersonBankverbindungCept.php | 11 - .../tests/api/v1/PersonBenutzerCept.php | 11 - .../api/v1/PersonBenutzerfunktionCept.php | 11 - .../tests/api/v1/PersonBenutzergruppeCept.php | 11 - .../tests/api/v1/PersonFotostatusCept.php | 11 - .../tests/api/v1/PersonFreebusyCept.php | 11 - .../tests/api/v1/PersonFreebusytypCept.php | 11 - .../tests/api/v1/PersonKontaktCept.php | 31 - .../tests/api/v1/PersonKontaktmediumCept.php | 11 - .../tests/api/v1/PersonKontakttypCept.php | 11 - .../tests/api/v1/PersonNotizCept.php | 11 - .../tests/api/v1/PersonNotizzuordnungCept.php | 11 - .../tests/api/v1/PersonPersonCept.php | 16 - .../tests/api/v1/ProjectAktivitaetCept.php | 11 - .../tests/api/v1/ProjectAufwandstypCept.php | 11 - .../tests/api/v1/ProjectProjektCept.php | 11 - .../api/v1/ProjectProjekt_ressourceCept.php | 11 - .../tests/api/v1/ProjectProjektphaseCept.php | 11 - .../tests/api/v1/ProjectProjekttaskCept.php | 11 - .../tests/api/v1/ProjectRessourceCept.php | 11 - .../tests/api/v1/ProjectScrumsprintCept.php | 11 - .../api/v1/RessourceBetriebsmittelCept.php | 11 - .../v1/RessourceBetriebsmittelperson2Cept.php | 11 - .../v1/RessourceBetriebsmittelstatusCept.php | 11 - .../api/v1/RessourceBetriebsmitteltypCept.php | 11 - .../tests/api/v1/RessourceCoodleCept.php | 11 - .../api/v1/RessourceErreichbarkeitCept.php | 11 - .../tests/api/v1/RessourceFirmaCept.php | 11 - .../tests/api/v1/RessourceFirmatagCept.php | 11 - .../tests/api/v1/RessourceFirmentypCept.php | 11 - .../tests/api/v1/RessourceFunktionCept.php | 11 - .../tests/api/v1/RessourceLehrmittelCept.php | 11 - .../tests/api/v1/RessourceMitarbeiterCept.php | 11 - .../tests/api/v1/RessourceOrtCept.php | 16 - .../tests/api/v1/RessourceOrtraumtypCept.php | 11 - .../RessourcePersonfunktionstandortCept.php | 11 - .../tests/api/v1/RessourceRaumtypCept.php | 11 - .../api/v1/RessourceReservierungCept.php | 11 - .../tests/api/v1/RessourceStundeCept.php | 11 - .../tests/api/v1/RessourceStundenplanCept.php | 11 - .../api/v1/RessourceStundenplandevCept.php | 11 - .../api/v1/RessourceZeitaufzeichnungCept.php | 11 - .../tests/api/v1/RessourceZeitsperreCept.php | 11 - .../api/v1/RessourceZeitsperretypCept.php | 11 - .../tests/api/v1/RessourceZeitwunschCept.php | 11 - .../tests/api/v1/SystemAppdatenCept.php | 11 - .../tests/api/v1/SystemBenutzerrolleCept.php | 11 - .../tests/api/v1/SystemBerechtigungCept.php | 11 - .../tests/api/v1/SystemCallerLibraryCept.php | 19 - .../tests/api/v1/SystemCallerModelCept.php | 19 - .../tests/api/v1/SystemCronjobCept.php | 11 - .../tests/api/v1/SystemFilterCept.php | 11 - .../tests/api/v1/SystemLogCept.php | 11 - .../tests/api/v1/SystemMessageCept.php | 26 - .../tests/api/v1/SystemPhraseCept.php | 16 - .../tests/api/v1/SystemRolleCept.php | 11 - .../api/v1/SystemRolleberechtigungCept.php | 11 - .../tests/api/v1/SystemServerCept.php | 11 - .../tests/api/v1/SystemSprache2Cept.php | 11 - .../tests/api/v1/SystemTagCept.php | 11 - .../tests/api/v1/SystemVariableCept.php | 11 - .../tests/api/v1/SystemVorlageCept.php | 11 - .../api/v1/SystemVorlagestudiengangCept.php | 11 - .../tests/api/v1/SystemWebservicelogCept.php | 11 - .../api/v1/SystemWebservicerechtCept.php | 11 - .../tests/api/v1/SystemWebservicetypCept.php | 11 - tests/codeception/tests/api/v1/TestCept.php | 11 - .../tests/api/v1/TesttoolAblaufCept.php | 11 - .../tests/api/v1/TesttoolAntwortCept.php | 11 - .../tests/api/v1/TesttoolFrageCept.php | 11 - .../tests/api/v1/TesttoolGebietCept.php | 11 - .../tests/api/v1/TesttoolKategorieCept.php | 11 - .../tests/api/v1/TesttoolKriterienCept.php | 11 - .../tests/api/v1/TesttoolPrueflingCept.php | 11 - .../tests/api/v1/TesttoolVorschlagCept.php | 11 - .../tests/functional.suite.yml.dist | 10 - .../tests/functional/FunctionalTester.php | 360 --- .../tests/functional/_bootstrap.php | 2 - tests/codeception/tests/unit.suite.yml.dist | 7 - tests/codeception/tests/unit/UnitTester.php | 268 -- tests/codeception/tests/unit/_bootstrap.php | 2 - .../Commenting/DocBlockAlignmentSniff.php | 59 - .../Commenting/FunctionCommentSniff.php | 487 ---- .../Commenting/FunctionCommentTypeSniff.php | 87 - .../ControlSignatureSniff.php | 58 - .../ElseIfDeclarationSniff.php | 48 - .../WhileStructuresSniff.php | 56 - .../Sniffs/Formatting/OneClassPerUseSniff.php | 48 - .../UseInAlphabeticalOrderSniff.php | 142 - .../Functions/ClosureDeclarationSniff.php | 35 - ...unctionDeclarationArgumentSpacingSniff.php | 26 - .../CamelCapsMethodNameSniff.php | 98 - .../UpperCaseConstantNameSniff.php | 223 -- .../ValidClassBracketsSniff.php | 47 - .../NamingConventions/ValidClassNameSniff.php | 99 - .../ValidFunctionNameSniff.php | 120 - .../NamingConventions/ValidTraitNameSniff.php | 48 - .../Sniffs/PHP/DisallowShortOpenTagSniff.php | 53 - .../Sniffs/PHP/TypeCastingSniff.php | 74 - .../Strings/ConcatenationSpacingSniff.php | 48 - .../Sniffs/WhiteSpace/CommaSpacingSniff.php | 54 - .../WhiteSpace/FunctionCallSpacingSniff.php | 53 - .../FunctionClosingBraceSpaceSniff.php | 69 - .../FunctionOpeningBraceSpaceSniff.php | 62 - .../WhiteSpace/FunctionSpacingSniff.php | 129 - .../WhiteSpace/ObjectOperatorSpacingSniff.php | 42 - .../WhiteSpace/OperatorSpacingSniff.php | 185 -- .../Sniffs/WhiteSpace/ScopeIndentSniff.php | 280 -- .../Sniffs/WhiteSpace/TabAndSpaceSniff.php | 63 - tests/codesniffer/FHComplete/ruleset.xml | 3 - .../tests/FHCompletePHPStandardTest.php | 67 - .../FHComplete/tests/TestHelper.php | 54 - .../FHComplete/tests/bootstrap.php | 2 - .../tests/files/FHComplete/throws_pass.php | 36 - .../FHComplete/tests/files/bad_trait_name.php | 4 - .../tests/files/class_brackets_fail1.php | 4 - .../tests/files/class_brackets_fail2.php | 4 - .../tests/files/class_brackets_fail3.php | 5 - .../files/class_underscore_prefix_pass.php | 18 - .../files/control_structure_brackets_pass.php | 25 - .../tests/files/control_structure_dowhile.php | 7 - .../tests/files/control_structure_elseif.php | 9 - .../files/control_structure_indentation.php | 5 - .../files/control_structure_nobrackets.php | 4 - .../tests/files/control_structure_nospace.php | 5 - .../tests/files/control_structure_while.php | 4 - .../files/control_structures_no_newline.php | 5 - .../tests/files/docblock_align_fail.php | 33 - .../tests/files/docblock_align_flat_pass.php | 25 - .../tests/files/docblock_align_pass.php | 30 - .../FHComplete/tests/files/double_space.php | 2 - .../tests/files/for_function_comment_pass.php | 15 - .../function_comment_opening_line_pass.php | 14 - .../tests/files/function_spacing.php | 5 - .../tests/files/operator_spacing_pass.php | 26 - .../tests/files/short_open_tags_fail.php | 9 - .../tests/files/short_open_tags_pass.php | 6 - .../FHComplete/tests/files/space_tab.php | 2 - .../FHComplete/tests/files/tab_space.php | 2 - .../tests/files/traits_no_order.php | 10 - .../FHComplete/tests/files/traits_pass.php | 16 - tests/phpmd/rulesets.xml | 19 + 309 files changed, 19 insertions(+), 11313 deletions(-) delete mode 100644 phpci.yml delete mode 100644 tests/codeception/_bootstrap.php delete mode 100644 tests/codeception/_data/.placeholder delete mode 100644 tests/codeception/_output/.placeholder delete mode 100644 tests/codeception/_support/AcceptanceTester.php delete mode 100644 tests/codeception/_support/ApiTester.php delete mode 100644 tests/codeception/_support/FunctionalTester.php delete mode 100644 tests/codeception/_support/UnitTester.php delete mode 100644 tests/codeception/_support/_generated/AcceptanceTesterActions.php delete mode 100644 tests/codeception/_support/_generated/ApiTesterActions.php delete mode 100644 tests/codeception/_support/_generated/FunctionalTesterActions.php delete mode 100644 tests/codeception/_support/_generated/UnitTesterActions.php delete mode 100644 tests/codeception/codeception.dist.yml delete mode 100644 tests/codeception/tests/acceptance.suite.yml.dist delete mode 100644 tests/codeception/tests/acceptance/CISLoginPage.php delete mode 100644 tests/codeception/tests/acceptance/VileSciSearchPersonCept.php delete mode 100644 tests/codeception/tests/acceptance/VileSciStartPage.php delete mode 100644 tests/codeception/tests/acceptance/_bootstrap.php delete mode 100644 tests/codeception/tests/api.suite.yml.dist delete mode 100644 tests/codeception/tests/api/_bootstrap.php delete mode 100644 tests/codeception/tests/api/generate.php delete mode 100644 tests/codeception/tests/api/template_call.tpl delete mode 100644 tests/codeception/tests/api/template_head.tpl delete mode 100644 tests/codeception/tests/api/v1/AccountingAufteilungCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBestelldetailCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBestelldetailtagCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBestellstatusCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBestellungCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBestellungtagCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBuchungCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBuchungstypCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingBudgetCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingKontoCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingKostenstelleCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingRechnungCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingRechnungsbetragCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingRechnungstypCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingVertragCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingVertragsstatusCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingVertragstypCept.php delete mode 100644 tests/codeception/tests/api/v1/AccountingZahlungstypCept.php delete mode 100644 tests/codeception/tests/api/v1/CheckUserAuthCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexAkadgradCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexArchivCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexAufmerksamdurchCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexAusbildungCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBerufstaetigkeitCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBeschaeftigungsausmassCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBesqualCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBisfunktionCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBisioCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBisorgformCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBisverwendungCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexBundeslandCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexEntwicklungsteamCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexGemeindeCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexHauptberufCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexLehrformCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexLgartcodeCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexMobilitaetsprogrammCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexNationCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexNoteCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexOrgformCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexVerwendungCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexZgvCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexZgvdoktorCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexZgvgruppeCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexZgvmasterCept.php delete mode 100644 tests/codeception/tests/api/v1/CodexZweckCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentAmpelCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentContentCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentContentchildCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentContentgruppeCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentContentlogCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentContentspracheCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentDmsCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentInfoscreenCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentNewsCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentTemplateCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentVeranstaltungCept.php delete mode 100644 tests/codeception/tests/api/v1/ContentVeranstaltungskategorieCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmAkteCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmAufnahmeschluesselCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmAufnahmeterminCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmAufnahmetermintypCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmBewerbungstermineCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmBuchungstypCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmDokumentCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmDokumentprestudentCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmDokumentstudiengangCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmKontoCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmPreincomingCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmPreinteressentCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmPreinteressentstudiengangCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmPreoutgoingCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmPrestudentCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmPrestudentstatusCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmReihungstestCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmRtPersonCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmStatusCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmStatusgrundCept.php delete mode 100644 tests/codeception/tests/api/v1/CrmStudentCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationAbgabeCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationAbschlussbeurteilungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationAbschlusspruefungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationAnrechnungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationAnwesenheitCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationBeispielCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationBetreuerartCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationFeedbackCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLegesamtnoteCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehreinheitCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehreinheitgruppeCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehreinheitmitarbeiterCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehrfachCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehrfunktionCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehrtypCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLehrveranstaltungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLenotenschluesselCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLepruefungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLvangebotCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLvgesamtnoteCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLvinfoCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLvregelCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationLvregeltypCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationNotenschluesselCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationNotenschluesselaufteilungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationNotenschluesseluebungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationNotenschluesselzuordnungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPaabgabeCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPaabgabetypCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationProjektarbeitCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationProjektbetreuerCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationProjekttypCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPruefungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPruefungsanmeldungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPruefungsfensterCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPruefungsstatusCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPruefungsterminCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationPruefungstypCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationStudentbeispielCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationStudentlehrverbandCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationStudentuebungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationUebungCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationZeugnisCept.php delete mode 100644 tests/codeception/tests/api/v1/EducationZeugnisnoteCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationErhalterCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationFachbereich2Cept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationFerienCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationGeschaeftsjahr2Cept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationGruppeCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationLehrverbandCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationOrganisationseinheit2Cept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationOrganisationseinheittypCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationSemesterwochenCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationServiceCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStandortCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStatistikCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudiengang2Cept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudiengangstypCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudienjahrCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudienordnungCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudienordnungstatusCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudienplanCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudienplatzCept.php delete mode 100644 tests/codeception/tests/api/v1/OrganisationStudiensemesterCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonAdresseCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonBankverbindungCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonBenutzerCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonBenutzerfunktionCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonBenutzergruppeCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonFotostatusCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonFreebusyCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonFreebusytypCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonKontaktCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonKontaktmediumCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonKontakttypCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonNotizCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonNotizzuordnungCept.php delete mode 100644 tests/codeception/tests/api/v1/PersonPersonCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectAktivitaetCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectAufwandstypCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectProjektCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectProjekt_ressourceCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectProjektphaseCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectProjekttaskCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectRessourceCept.php delete mode 100644 tests/codeception/tests/api/v1/ProjectScrumsprintCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceBetriebsmittelCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceBetriebsmittelperson2Cept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceBetriebsmittelstatusCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceBetriebsmitteltypCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceCoodleCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceErreichbarkeitCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceFirmaCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceFirmatagCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceFirmentypCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceFunktionCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceLehrmittelCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceMitarbeiterCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceOrtCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceOrtraumtypCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourcePersonfunktionstandortCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceRaumtypCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceReservierungCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceStundeCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceStundenplanCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceStundenplandevCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceZeitaufzeichnungCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceZeitsperreCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceZeitsperretypCept.php delete mode 100644 tests/codeception/tests/api/v1/RessourceZeitwunschCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemAppdatenCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemBenutzerrolleCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemBerechtigungCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemCallerLibraryCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemCallerModelCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemCronjobCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemFilterCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemLogCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemMessageCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemPhraseCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemRolleCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemRolleberechtigungCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemServerCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemSprache2Cept.php delete mode 100644 tests/codeception/tests/api/v1/SystemTagCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemVariableCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemVorlageCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemVorlagestudiengangCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemWebservicelogCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemWebservicerechtCept.php delete mode 100644 tests/codeception/tests/api/v1/SystemWebservicetypCept.php delete mode 100644 tests/codeception/tests/api/v1/TestCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolAblaufCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolAntwortCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolFrageCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolGebietCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolKategorieCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolKriterienCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolPrueflingCept.php delete mode 100644 tests/codeception/tests/api/v1/TesttoolVorschlagCept.php delete mode 100644 tests/codeception/tests/functional.suite.yml.dist delete mode 100644 tests/codeception/tests/functional/FunctionalTester.php delete mode 100644 tests/codeception/tests/functional/_bootstrap.php delete mode 100644 tests/codeception/tests/unit.suite.yml.dist delete mode 100644 tests/codeception/tests/unit/UnitTester.php delete mode 100644 tests/codeception/tests/unit/_bootstrap.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Commenting/DocBlockAlignmentSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Commenting/FunctionCommentSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Commenting/FunctionCommentTypeSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/ControlStructures/ControlSignatureSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/ControlStructures/ElseIfDeclarationSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/ControlStructures/WhileStructuresSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Formatting/OneClassPerUseSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Formatting/UseInAlphabeticalOrderSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Functions/ClosureDeclarationSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/NamingConventions/CamelCapsMethodNameSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidClassBracketsSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidClassNameSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidFunctionNameSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidTraitNameSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/PHP/DisallowShortOpenTagSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/PHP/TypeCastingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/Strings/ConcatenationSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/CommaSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/FunctionSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/OperatorSpacingSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/ScopeIndentSniff.php delete mode 100644 tests/codesniffer/FHComplete/Sniffs/WhiteSpace/TabAndSpaceSniff.php delete mode 100644 tests/codesniffer/FHComplete/tests/FHCompletePHPStandardTest.php delete mode 100644 tests/codesniffer/FHComplete/tests/TestHelper.php delete mode 100644 tests/codesniffer/FHComplete/tests/bootstrap.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/FHComplete/throws_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/bad_trait_name.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/class_brackets_fail1.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/class_brackets_fail2.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/class_brackets_fail3.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/class_underscore_prefix_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_brackets_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_dowhile.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_elseif.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_indentation.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_nobrackets.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_nospace.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structure_while.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/control_structures_no_newline.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/docblock_align_fail.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/docblock_align_flat_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/docblock_align_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/double_space.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/for_function_comment_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/function_comment_opening_line_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/function_spacing.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/operator_spacing_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/short_open_tags_fail.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/short_open_tags_pass.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/space_tab.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/tab_space.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/traits_no_order.php delete mode 100644 tests/codesniffer/FHComplete/tests/files/traits_pass.php create mode 100644 tests/phpmd/rulesets.xml diff --git a/phpci.yml b/phpci.yml deleted file mode 100644 index 2978796e3..000000000 --- a/phpci.yml +++ /dev/null @@ -1,127 +0,0 @@ -# Globally valid entries -build_settings: - ignore: # Ignores vendor and tests folders - - "vendor" - - "tests" - pgsql: # PostgreSQL connection parameters - host: "localhost;dbname=template1" # Connects to the template1 database to be able to drop database fhcomplete - user: "fhcomplete" - pass: "fhcomplete" - -setup: # First! - pgsql: # Close previous connections to database -> drop database -> create database - - "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND datname = 'fhcomplete';" - - "DROP DATABASE IF EXISTS fhcomplete;" - - "CREATE DATABASE fhcomplete;" - composer: # Run composer to install all the required 3rd party software - shell: - # Install addons - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Abrechnung.git %BUILD_PATH%/addons/abrechnung" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Asterisk.git %BUILD_PATH%/addons/asterisk" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Aufnahme.git %BUILD_PATH%/addons/aufnahme" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Bewerbung.git %BUILD_PATH%/addons/bewerbung" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-CaseTime.git %BUILD_PATH%/addons/casetime" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-LDAP.git %BUILD_PATH%/addons/ldap" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Lehrmittel.git %BUILD_PATH%/addons/lehrmittel" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-LV-Evaluierung.git %BUILD_PATH%/addons/lvevaluierung" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-LVInfo.git %BUILD_PATH%/addons/lvinfo" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Kompetenzen.git %BUILD_PATH%/addons/kompetenzen" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Moodle.git %BUILD_PATH%/addons/moodle" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Reports.git %BUILD_PATH%/addons/reports" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Studiengangsverwaltung.git %BUILD_PATH%/addons/studiengangsverwaltung" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Textbausteine.git %BUILD_PATH%/addons/textbausteine" - - "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-WaWi.git %BUILD_PATH%/addons/wawi" - # Copy addons configs - - "cp -R /var/www/configs/fhc/abrechnung/* %BUILD_PATH%/addons/abrechnung" - - "cp -R /var/www/configs/fhc/asterisk/* %BUILD_PATH%/addons/asterisk" - - "cp -R /var/www/configs/fhc/bewerbung/* %BUILD_PATH%/addons/bewerbung" - - "cp -R /var/www/configs/fhc/casetime/* %BUILD_PATH%/addons/casetime" - - "cp -R /var/www/configs/fhc/lehrmittel/* %BUILD_PATH%/addons/lehrmittel" - - "cp -R /var/www/configs/fhc/lvinfo/* %BUILD_PATH%/addons/lvinfo" - - "cp -R /var/www/configs/fhc/reports/* %BUILD_PATH%/addons/reports" - - "cp -R /var/www/configs/fhc/wawi/* %BUILD_PATH%/addons/wawi" - # Copy core configs and .htaccess - - "cp -R /var/www/configs/fhc/configs/* ./config" - - "cp /var/www/configs/fhc/configs/.htaccess ./cis/private/" - - "cp /var/www/configs/fhc/configs/.htaccess ./content" - - "cp /var/www/configs/fhc/configs/.htaccess ./rdf" - - "cp /var/www/configs/fhc/configs/.htaccess ./system" - - "cp /var/www/configs/fhc/configs/.htaccess ./vilesci" - # Create core directories - - "mkdir documents" - - "mkdir documents/csv_import" - - "mkdir documents/dms" - - "mkdir documents/import" - - "mkdir documents/benotungstool" - - "mkdir paabgabe" - # Copy codeigniter configs - - "mkdir ./application/config/development" - - "cp -R /var/www/configs/ci/* ./application/config/development" - # Clone extensions - - "git clone --quiet https://github.com/FH-Complete/FHC-Core-MobilityOnline.git /tmp/FHC-Core-MobilityOnline" - - "git clone --quiet https://github.com/FH-Complete/FHC-Core-Budget.git /tmp/FHC-Core-Budget" - - "git clone --quiet https://github.com/FH-Complete/FHC-Core-DSMS.git /tmp/FHC-Core-DSMS" - - "git clone --quiet https://github.com/FH-Complete/FHC-Core-Nextcloud.git /tmp/FHC-Core-Nextcloud" - # Create extensions archives - - "tar cfzP /tmp/FHC-Core-MobilityOnline.tgz /tmp/FHC-Core-MobilityOnline/" - - "tar cfzP /tmp/FHC-Core-Budget.tgz /tmp/FHC-Core-Budget/" - - "tar cfzP /tmp/FHC-Core-DSMS.tgz /tmp/FHC-Core-DSMS/" - - "tar cfzP /tmp/FHC-Core-Nextcloud.tgz /tmp/FHC-Core-Nextcloud/" - # Install extensions - #- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-MobilityOnline /tmp/FHC-Core-MobilityOnline.tgz" - #- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-Budget /tmp/FHC-Core-Budget.tgz" - #- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-DSMS /tmp/FHC-Core-DSMS.tgz" - #- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-Nextcloud /tmp/FHC-Core-Nextcloud.tgz" - # Remove temporary files - - "rm -fR /tmp/FHC-Core-MobilityOnline*" - - "rm -fR /tmp/FHC-Core-Budget*" - - "rm -fR /tmp/FHC-Core-DSMS*" - - "rm -fR /tmp/FHC-Core-Nextcloud*" - # Change files permissions - - "chmod -R 0770 *" - - "find . -type f -exec chmod 0644 {} \\;" - # Create a symlink to the current build folder - - "ln -s %BUILD_PATH% ../fhcomplete" - -test: # Run tests - php_parallel_lint: # Lint cannot fail! - php_mess_detector: # Mess detector - rules: - - "unusedcode" - - "codesize" - - "design" - allow_failures: true - php_cpd: # Copy/paste detector - ignore: - - "rdf" - - "config" - - "locale" - - "application/config" - - "application/views" - # Global ignore is overwritten by the specific one - - "vendor" - - "tests" - allow_failures: true - php_code_sniffer: # Code sniffer - standard: "tests/codesniffer/FHComplete" - ignore: - - "rdf" - - "locale" - - "application/views" - allowed_warnings: -1 # Warnings are ignored for a successful build - allow_failures: true - #codeception: # Codeception - # config: "tests/codeception/" - # path: "tests/codeception/_output/" - # allow_failures: true - -failure: # On failure - email: # Send an email to warn the team - default_mailto_address: systementwicklung@technikum-wien.at - -complete: # Last! - pgsql: # Close previous connections to database -> drop database - - "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND datname = 'fhcomplete';" - - "DROP DATABASE IF EXISTS fhcomplete;" - shell: # Remove the previously created symlink - - "rm ../fhcomplete" diff --git a/tests/codeception/_bootstrap.php b/tests/codeception/_bootstrap.php deleted file mode 100644 index 243f9c85b..000000000 --- a/tests/codeception/_bootstrap.php +++ /dev/null @@ -1,2 +0,0 @@ -haveInDatabase('users', array('name' => 'miles', 'email' => 'miles@davis.com')); - * ?> - * ``` - * - * @param string $table - * @param array $data - * - * @return integer $id - * @see \Codeception\Module\Db::haveInDatabase() - */ - public function haveInDatabase($table, $data) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('haveInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that a row with the given column values exists. - * Provide table name and column values. - * - * ``` php - * seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com')); - * ``` - * Fails if no such user found. - * - * @param string $table - * @param array $criteria - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Module\Db::seeInDatabase() - */ - public function canSeeInDatabase($table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInDatabase', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that a row with the given column values exists. - * Provide table name and column values. - * - * ``` php - * seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com')); - * ``` - * Fails if no such user found. - * - * @param string $table - * @param array $criteria - * @see \Codeception\Module\Db::seeInDatabase() - */ - public function seeInDatabase($table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that the given number of records were found in the database. - * - * ``` php - * seeNumRecords(1, 'users', ['name' => 'davert']) - * ?> - * ``` - * - * @param int $expectedNumber Expected number - * @param string $table Table name - * @param array $criteria Search criteria [Optional] - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Module\Db::seeNumRecords() - */ - public function canSeeNumRecords($expectedNumber, $table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumRecords', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that the given number of records were found in the database. - * - * ``` php - * seeNumRecords(1, 'users', ['name' => 'davert']) - * ?> - * ``` - * - * @param int $expectedNumber Expected number - * @param string $table Table name - * @param array $criteria Search criteria [Optional] - * @see \Codeception\Module\Db::seeNumRecords() - */ - public function seeNumRecords($expectedNumber, $table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumRecords', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Effect is opposite to ->seeInDatabase - * - * Asserts that there is no record with the given column values in a database. - * Provide table name and column values. - * - * ``` php - * dontSeeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com')); - * ``` - * Fails if such user was found. - * - * @param string $table - * @param array $criteria - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Module\Db::dontSeeInDatabase() - */ - public function cantSeeInDatabase($table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInDatabase', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Effect is opposite to ->seeInDatabase - * - * Asserts that there is no record with the given column values in a database. - * Provide table name and column values. - * - * ``` php - * dontSeeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com')); - * ``` - * Fails if such user was found. - * - * @param string $table - * @param array $criteria - * @see \Codeception\Module\Db::dontSeeInDatabase() - */ - public function dontSeeInDatabase($table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Fetches a single column value from a database. - * Provide table name, desired column and criteria. - * - * ``` php - * grabFromDatabase('users', 'email', array('name' => 'Davert')); - * ``` - * - * @param string $table - * @param string $column - * @param array $criteria - * - * @return mixed - * @see \Codeception\Module\Db::grabFromDatabase() - */ - public function grabFromDatabase($table, $column, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromDatabase', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Returns the number of rows in a database - * - * @param string $table Table name - * @param array $criteria Search criteria [Optional] - * - * @return int - * @see \Codeception\Module\Db::grabNumRecords() - */ - public function grabNumRecords($table, $criteria = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabNumRecords', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Alias to `haveHttpHeader` - * - * @param $name - * @param $value - * @see \Codeception\Module\PhpBrowser::setHeader() - */ - public function setHeader($name, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('setHeader', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Authenticates user for HTTP_AUTH - * - * @param $username - * @param $password - * @see \Codeception\Module\PhpBrowser::amHttpAuthenticated() - */ - public function amHttpAuthenticated($username, $password) { - return $this->getScenario()->runStep(new \Codeception\Step\Condition('amHttpAuthenticated', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Open web page at the given absolute URL and sets its hostname as the base host. - * - * ``` php - * amOnUrl('http://codeception.com'); - * $I->amOnPage('/quickstart'); // moves to http://codeception.com/quickstart - * ?> - * ``` - * @see \Codeception\Module\PhpBrowser::amOnUrl() - */ - public function amOnUrl($url) { - return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnUrl', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Changes the subdomain for the 'url' configuration parameter. - * Does not open a page; use `amOnPage` for that. - * - * ``` php - * amOnSubdomain('user'); - * $I->amOnPage('/'); - * // moves to http://user.mysite.com/ - * ?> - * ``` - * - * @param $subdomain - * - * @return mixed - * @see \Codeception\Module\PhpBrowser::amOnSubdomain() - */ - public function amOnSubdomain($subdomain) { - return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnSubdomain', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Low-level API method. - * If Codeception commands are not enough, use [Guzzle HTTP Client](http://guzzlephp.org/) methods directly - * - * Example: - * - * ``` php - * executeInGuzzle(function (\GuzzleHttp\Client $client) { - * $client->get('/get', ['query' => ['foo' => 'bar']]); - * }); - * ?> - * ``` - * - * It is not recommended to use this command on a regular basis. - * If Codeception lacks important Guzzle Client methods, implement them and submit patches. - * - * @param callable $function - * @see \Codeception\Module\PhpBrowser::executeInGuzzle() - */ - public function executeInGuzzle($function) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('executeInGuzzle', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Sets the HTTP header to the passed value - which is used on - * subsequent HTTP requests through PhpBrowser. - * - * Example: - * ```php - * setHeader('X-Requested-With', 'Codeception'); - * $I->amOnPage('test-headers.php'); - * ?> - * ``` - * - * @param string $name the name of the request header - * @param string $value the value to set it to for subsequent - * requests - * @see \Codeception\Lib\InnerBrowser::haveHttpHeader() - */ - public function haveHttpHeader($name, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('haveHttpHeader', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Deletes the header with the passed name. Subsequent requests - * will not have the deleted header in its request. - * - * Example: - * ```php - * haveHttpHeader('X-Requested-With', 'Codeception'); - * $I->amOnPage('test-headers.php'); - * // ... - * $I->deleteHeader('X-Requested-With'); - * $I->amOnPage('some-other-page.php'); - * ?> - * ``` - * - * @param string $name the name of the header to delete. - * @see \Codeception\Lib\InnerBrowser::deleteHeader() - */ - public function deleteHeader($name) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('deleteHeader', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Opens the page for the given relative URI. - * - * ``` php - * amOnPage('/'); - * // opens /register page - * $I->amOnPage('/register'); - * ``` - * - * @param $page - * @see \Codeception\Lib\InnerBrowser::amOnPage() - */ - public function amOnPage($page) { - return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Perform a click on a link or a button, given by a locator. - * If a fuzzy locator is given, the page will be searched for a button, link, or image matching the locator string. - * For buttons, the "value" attribute, "name" attribute, and inner text are searched. - * For links, the link text is searched. - * For images, the "alt" attribute and inner text of any parent links are searched. - * - * The second parameter is a context (CSS or XPath locator) to narrow the search. - * - * Note that if the locator matches a button of type `submit`, the form will be submitted. - * - * ``` php - * click('Logout'); - * // button of form - * $I->click('Submit'); - * // CSS button - * $I->click('#form input[type=submit]'); - * // XPath - * $I->click('//form/*[@type=submit]'); - * // link in context - * $I->click('Logout', '#nav'); - * // using strict locator - * $I->click(['link' => 'Login']); - * ?> - * ``` - * - * @param $link - * @param $context - * @see \Codeception\Lib\InnerBrowser::click() - */ - public function click($link, $context = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page contains the given string (case insensitive). - * - * You can specify a specific HTML element (via CSS or XPath) as the second - * parameter to only search within that element. - * - * ``` php - * see('Logout'); // I can suppose user is logged in - * $I->see('Sign Up', 'h1'); // I can suppose it's a signup page - * $I->see('Sign Up', '//body/h1'); // with XPath - * ``` - * - * Note that the search is done after stripping all HTML tags from the body, - * so `$I->see('strong')` will return true for strings like: - * - * - `

I am Stronger than thou

` - * - `` - * - * But will *not* be true for strings like: - * - * - `Home` - * - `
Home` - * - `` - * - * For checking the raw source code, use `seeInSource()`. - * - * @param $text - * @param null $selector - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::see() - */ - public function canSee($text, $selector = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('see', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page contains the given string (case insensitive). - * - * You can specify a specific HTML element (via CSS or XPath) as the second - * parameter to only search within that element. - * - * ``` php - * see('Logout'); // I can suppose user is logged in - * $I->see('Sign Up', 'h1'); // I can suppose it's a signup page - * $I->see('Sign Up', '//body/h1'); // with XPath - * ``` - * - * Note that the search is done after stripping all HTML tags from the body, - * so `$I->see('strong')` will return true for strings like: - * - * - `

I am Stronger than thou

` - * - `` - * - * But will *not* be true for strings like: - * - * - `Home` - * - `
Home` - * - `` - * - * For checking the raw source code, use `seeInSource()`. - * - * @param $text - * @param null $selector - * @see \Codeception\Lib\InnerBrowser::see() - */ - public function see($text, $selector = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page doesn't contain the text specified (case insensitive). - * Give a locator as the second parameter to match a specific region. - * - * ```php - * dontSee('Login'); // I can suppose user is already logged in - * $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page - * $I->dontSee('Sign Up','//body/h1'); // with XPath - * ``` - * - * Note that the search is done after stripping all HTML tags from the body, - * so `$I->dontSee('strong')` will fail on strings like: - * - * - `

I am Stronger than thou

` - * - `` - * - * But will ignore strings like: - * - * - `Home` - * - `
Home` - * - `` - * - * For checking the raw source code, use `seeInSource()`. - * - * @param $text - * @param null $selector - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSee() - */ - public function cantSee($text, $selector = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSee', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page doesn't contain the text specified (case insensitive). - * Give a locator as the second parameter to match a specific region. - * - * ```php - * dontSee('Login'); // I can suppose user is already logged in - * $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page - * $I->dontSee('Sign Up','//body/h1'); // with XPath - * ``` - * - * Note that the search is done after stripping all HTML tags from the body, - * so `$I->dontSee('strong')` will fail on strings like: - * - * - `

I am Stronger than thou

` - * - `` - * - * But will ignore strings like: - * - * - `Home` - * - `
Home` - * - `` - * - * For checking the raw source code, use `seeInSource()`. - * - * @param $text - * @param null $selector - * @see \Codeception\Lib\InnerBrowser::dontSee() - */ - public function dontSee($text, $selector = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page contains the given string in its - * raw source code. - * - * ``` php - * seeInSource('

Green eggs & ham

'); - * ``` - * - * @param $raw - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeInSource() - */ - public function canSeeInSource($raw) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInSource', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page contains the given string in its - * raw source code. - * - * ``` php - * seeInSource('

Green eggs & ham

'); - * ``` - * - * @param $raw - * @see \Codeception\Lib\InnerBrowser::seeInSource() - */ - public function seeInSource($raw) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInSource', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page contains the given string in its - * raw source code. - * - * ```php - * dontSeeInSource('

Green eggs & ham

'); - * ``` - * - * @param $raw - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeInSource() - */ - public function cantSeeInSource($raw) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInSource', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current page contains the given string in its - * raw source code. - * - * ```php - * dontSeeInSource('

Green eggs & ham

'); - * ``` - * - * @param $raw - * @see \Codeception\Lib\InnerBrowser::dontSeeInSource() - */ - public function dontSeeInSource($raw) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInSource', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that there's a link with the specified text. - * Give a full URL as the second parameter to match links with that exact URL. - * - * ``` php - * seeLink('Logout'); // matches Logout - * $I->seeLink('Logout','/logout'); // matches Logout - * ?> - * ``` - * - * @param $text - * @param null $url - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeLink() - */ - public function canSeeLink($text, $url = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeLink', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that there's a link with the specified text. - * Give a full URL as the second parameter to match links with that exact URL. - * - * ``` php - * seeLink('Logout'); // matches Logout - * $I->seeLink('Logout','/logout'); // matches Logout - * ?> - * ``` - * - * @param $text - * @param null $url - * @see \Codeception\Lib\InnerBrowser::seeLink() - */ - public function seeLink($text, $url = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the page doesn't contain a link with the given string. - * If the second parameter is given, only links with a matching "href" attribute will be checked. - * - * ``` php - * dontSeeLink('Logout'); // I suppose user is not logged in - * $I->dontSeeLink('Checkout now', '/store/cart.php'); - * ?> - * ``` - * - * @param $text - * @param null $url - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeLink() - */ - public function cantSeeLink($text, $url = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeLink', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the page doesn't contain a link with the given string. - * If the second parameter is given, only links with a matching "href" attribute will be checked. - * - * ``` php - * dontSeeLink('Logout'); // I suppose user is not logged in - * $I->dontSeeLink('Checkout now', '/store/cart.php'); - * ?> - * ``` - * - * @param $text - * @param null $url - * @see \Codeception\Lib\InnerBrowser::dontSeeLink() - */ - public function dontSeeLink($text, $url = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that current URI contains the given string. - * - * ``` php - * seeInCurrentUrl('home'); - * // to match: /users/1 - * $I->seeInCurrentUrl('/users/'); - * ?> - * ``` - * - * @param $uri - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl() - */ - public function canSeeInCurrentUrl($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInCurrentUrl', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that current URI contains the given string. - * - * ``` php - * seeInCurrentUrl('home'); - * // to match: /users/1 - * $I->seeInCurrentUrl('/users/'); - * ?> - * ``` - * - * @param $uri - * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl() - */ - public function seeInCurrentUrl($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URI doesn't contain the given string. - * - * ``` php - * dontSeeInCurrentUrl('/users/'); - * ?> - * ``` - * - * @param $uri - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl() - */ - public function cantSeeInCurrentUrl($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInCurrentUrl', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URI doesn't contain the given string. - * - * ``` php - * dontSeeInCurrentUrl('/users/'); - * ?> - * ``` - * - * @param $uri - * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl() - */ - public function dontSeeInCurrentUrl($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInCurrentUrl', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URL is equal to the given string. - * Unlike `seeInCurrentUrl`, this only matches the full URL. - * - * ``` php - * seeCurrentUrlEquals('/'); - * ?> - * ``` - * - * @param $uri - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals() - */ - public function canSeeCurrentUrlEquals($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlEquals', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URL is equal to the given string. - * Unlike `seeInCurrentUrl`, this only matches the full URL. - * - * ``` php - * seeCurrentUrlEquals('/'); - * ?> - * ``` - * - * @param $uri - * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals() - */ - public function seeCurrentUrlEquals($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URL doesn't equal the given string. - * Unlike `dontSeeInCurrentUrl`, this only matches the full URL. - * - * ``` php - * dontSeeCurrentUrlEquals('/'); - * ?> - * ``` - * - * @param $uri - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals() - */ - public function cantSeeCurrentUrlEquals($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlEquals', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URL doesn't equal the given string. - * Unlike `dontSeeInCurrentUrl`, this only matches the full URL. - * - * ``` php - * dontSeeCurrentUrlEquals('/'); - * ?> - * ``` - * - * @param $uri - * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals() - */ - public function dontSeeCurrentUrlEquals($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlEquals', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URL matches the given regular expression. - * - * ``` php - * seeCurrentUrlMatches('~$/users/(\d+)~'); - * ?> - * ``` - * - * @param $uri - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches() - */ - public function canSeeCurrentUrlMatches($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlMatches', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the current URL matches the given regular expression. - * - * ``` php - * seeCurrentUrlMatches('~$/users/(\d+)~'); - * ?> - * ``` - * - * @param $uri - * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches() - */ - public function seeCurrentUrlMatches($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlMatches', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that current url doesn't match the given regular expression. - * - * ``` php - * dontSeeCurrentUrlMatches('~$/users/(\d+)~'); - * ?> - * ``` - * - * @param $uri - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches() - */ - public function cantSeeCurrentUrlMatches($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlMatches', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that current url doesn't match the given regular expression. - * - * ``` php - * dontSeeCurrentUrlMatches('~$/users/(\d+)~'); - * ?> - * ``` - * - * @param $uri - * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches() - */ - public function dontSeeCurrentUrlMatches($uri) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlMatches', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Executes the given regular expression against the current URI and returns the first match. - * If no parameters are provided, the full URI is returned. - * - * ``` php - * grabFromCurrentUrl('~$/user/(\d+)/~'); - * $uri = $I->grabFromCurrentUrl(); - * ?> - * ``` - * - * @param null $uri - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::grabFromCurrentUrl() - */ - public function grabFromCurrentUrl($uri = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromCurrentUrl', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the specified checkbox is checked. - * - * ``` php - * seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms - * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form. - * $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]'); - * ?> - * ``` - * - * @param $checkbox - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked() - */ - public function canSeeCheckboxIsChecked($checkbox) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCheckboxIsChecked', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the specified checkbox is checked. - * - * ``` php - * seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms - * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form. - * $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]'); - * ?> - * ``` - * - * @param $checkbox - * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked() - */ - public function seeCheckboxIsChecked($checkbox) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCheckboxIsChecked', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Check that the specified checkbox is unchecked. - * - * ``` php - * dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms - * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form. - * ?> - * ``` - * - * @param $checkbox - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked() - */ - public function cantSeeCheckboxIsChecked($checkbox) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCheckboxIsChecked', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Check that the specified checkbox is unchecked. - * - * ``` php - * dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms - * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form. - * ?> - * ``` - * - * @param $checkbox - * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked() - */ - public function dontSeeCheckboxIsChecked($checkbox) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCheckboxIsChecked', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given input field or textarea contains the given value. - * For fuzzy locators, fields are matched by label text, the "name" attribute, CSS, and XPath. - * - * ``` php - * seeInField('Body','Type your comment here'); - * $I->seeInField('form textarea[name=body]','Type your comment here'); - * $I->seeInField('form input[type=hidden]','hidden_value'); - * $I->seeInField('#searchform input','Search'); - * $I->seeInField('//form/*[@name=search]','Search'); - * $I->seeInField(['name' => 'search'], 'Search'); - * ?> - * ``` - * - * @param $field - * @param $value - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeInField() - */ - public function canSeeInField($field, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInField', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given input field or textarea contains the given value. - * For fuzzy locators, fields are matched by label text, the "name" attribute, CSS, and XPath. - * - * ``` php - * seeInField('Body','Type your comment here'); - * $I->seeInField('form textarea[name=body]','Type your comment here'); - * $I->seeInField('form input[type=hidden]','hidden_value'); - * $I->seeInField('#searchform input','Search'); - * $I->seeInField('//form/*[@name=search]','Search'); - * $I->seeInField(['name' => 'search'], 'Search'); - * ?> - * ``` - * - * @param $field - * @param $value - * @see \Codeception\Lib\InnerBrowser::seeInField() - */ - public function seeInField($field, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInField', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that an input field or textarea doesn't contain the given value. - * For fuzzy locators, the field is matched by label text, CSS and XPath. - * - * ``` php - * dontSeeInField('Body','Type your comment here'); - * $I->dontSeeInField('form textarea[name=body]','Type your comment here'); - * $I->dontSeeInField('form input[type=hidden]','hidden_value'); - * $I->dontSeeInField('#searchform input','Search'); - * $I->dontSeeInField('//form/*[@name=search]','Search'); - * $I->dontSeeInField(['name' => 'search'], 'Search'); - * ?> - * ``` - * - * @param $field - * @param $value - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeInField() - */ - public function cantSeeInField($field, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInField', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that an input field or textarea doesn't contain the given value. - * For fuzzy locators, the field is matched by label text, CSS and XPath. - * - * ``` php - * dontSeeInField('Body','Type your comment here'); - * $I->dontSeeInField('form textarea[name=body]','Type your comment here'); - * $I->dontSeeInField('form input[type=hidden]','hidden_value'); - * $I->dontSeeInField('#searchform input','Search'); - * $I->dontSeeInField('//form/*[@name=search]','Search'); - * $I->dontSeeInField(['name' => 'search'], 'Search'); - * ?> - * ``` - * - * @param $field - * @param $value - * @see \Codeception\Lib\InnerBrowser::dontSeeInField() - */ - public function dontSeeInField($field, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInField', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks if the array of form parameters (name => value) are set on the form matched with the - * passed selector. - * - * ``` php - * seeInFormFields('form[name=myform]', [ - * 'input1' => 'value', - * 'input2' => 'other value', - * ]); - * ?> - * ``` - * - * For multi-select elements, or to check values of multiple elements with the same name, an - * array may be passed: - * - * ``` php - * seeInFormFields('.form-class', [ - * 'multiselect' => [ - * 'value1', - * 'value2', - * ], - * 'checkbox[]' => [ - * 'a checked value', - * 'another checked value', - * ], - * ]); - * ?> - * ``` - * - * Additionally, checkbox values can be checked with a boolean. - * - * ``` php - * seeInFormFields('#form-id', [ - * 'checkbox1' => true, // passes if checked - * 'checkbox2' => false, // passes if unchecked - * ]); - * ?> - * ``` - * - * Pair this with submitForm for quick testing magic. - * - * ``` php - * 'value', - * 'field2' => 'another value', - * 'checkbox1' => true, - * // ... - * ]; - * $I->submitForm('//form[@id=my-form]', $form, 'submitButton'); - * // $I->amOnPage('/path/to/form-page') may be needed - * $I->seeInFormFields('//form[@id=my-form]', $form); - * ?> - * ``` - * - * @param $formSelector - * @param $params - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeInFormFields() - */ - public function canSeeInFormFields($formSelector, $params) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInFormFields', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks if the array of form parameters (name => value) are set on the form matched with the - * passed selector. - * - * ``` php - * seeInFormFields('form[name=myform]', [ - * 'input1' => 'value', - * 'input2' => 'other value', - * ]); - * ?> - * ``` - * - * For multi-select elements, or to check values of multiple elements with the same name, an - * array may be passed: - * - * ``` php - * seeInFormFields('.form-class', [ - * 'multiselect' => [ - * 'value1', - * 'value2', - * ], - * 'checkbox[]' => [ - * 'a checked value', - * 'another checked value', - * ], - * ]); - * ?> - * ``` - * - * Additionally, checkbox values can be checked with a boolean. - * - * ``` php - * seeInFormFields('#form-id', [ - * 'checkbox1' => true, // passes if checked - * 'checkbox2' => false, // passes if unchecked - * ]); - * ?> - * ``` - * - * Pair this with submitForm for quick testing magic. - * - * ``` php - * 'value', - * 'field2' => 'another value', - * 'checkbox1' => true, - * // ... - * ]; - * $I->submitForm('//form[@id=my-form]', $form, 'submitButton'); - * // $I->amOnPage('/path/to/form-page') may be needed - * $I->seeInFormFields('//form[@id=my-form]', $form); - * ?> - * ``` - * - * @param $formSelector - * @param $params - * @see \Codeception\Lib\InnerBrowser::seeInFormFields() - */ - public function seeInFormFields($formSelector, $params) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInFormFields', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks if the array of form parameters (name => value) are not set on the form matched with - * the passed selector. - * - * ``` php - * dontSeeInFormFields('form[name=myform]', [ - * 'input1' => 'non-existent value', - * 'input2' => 'other non-existent value', - * ]); - * ?> - * ``` - * - * To check that an element hasn't been assigned any one of many values, an array can be passed - * as the value: - * - * ``` php - * dontSeeInFormFields('.form-class', [ - * 'fieldName' => [ - * 'This value shouldn\'t be set', - * 'And this value shouldn\'t be set', - * ], - * ]); - * ?> - * ``` - * - * Additionally, checkbox values can be checked with a boolean. - * - * ``` php - * dontSeeInFormFields('#form-id', [ - * 'checkbox1' => true, // fails if checked - * 'checkbox2' => false, // fails if unchecked - * ]); - * ?> - * ``` - * - * @param $formSelector - * @param $params - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields() - */ - public function cantSeeInFormFields($formSelector, $params) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInFormFields', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks if the array of form parameters (name => value) are not set on the form matched with - * the passed selector. - * - * ``` php - * dontSeeInFormFields('form[name=myform]', [ - * 'input1' => 'non-existent value', - * 'input2' => 'other non-existent value', - * ]); - * ?> - * ``` - * - * To check that an element hasn't been assigned any one of many values, an array can be passed - * as the value: - * - * ``` php - * dontSeeInFormFields('.form-class', [ - * 'fieldName' => [ - * 'This value shouldn\'t be set', - * 'And this value shouldn\'t be set', - * ], - * ]); - * ?> - * ``` - * - * Additionally, checkbox values can be checked with a boolean. - * - * ``` php - * dontSeeInFormFields('#form-id', [ - * 'checkbox1' => true, // fails if checked - * 'checkbox2' => false, // fails if unchecked - * ]); - * ?> - * ``` - * - * @param $formSelector - * @param $params - * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields() - */ - public function dontSeeInFormFields($formSelector, $params) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInFormFields', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Submits the given form on the page, optionally with the given form - * values. Pass the form field's values as an array in the second - * parameter. - * - * Although this function can be used as a short-hand version of - * `fillField()`, `selectOption()`, `click()` etc. it has some important - * differences: - * - * * Only field *names* may be used, not CSS/XPath selectors nor field labels - * * If a field is sent to this function that does *not* exist on the page, - * it will silently be added to the HTTP request. This is helpful for testing - * some types of forms, but be aware that you will *not* get an exception - * like you would if you called `fillField()` or `selectOption()` with - * a missing field. - * - * Fields that are not provided will be filled by their values from the page, - * or from any previous calls to `fillField()`, `selectOption()` etc. - * You don't need to click the 'Submit' button afterwards. - * This command itself triggers the request to form's action. - * - * You can optionally specify which button's value to include - * in the request with the last parameter (as an alternative to - * explicitly setting its value in the second parameter), as - * button values are not otherwise included in the request. - * - * Examples: - * - * ``` php - * submitForm('#login', [ - * 'login' => 'davert', - * 'password' => '123456' - * ]); - * // or - * $I->submitForm('#login', [ - * 'login' => 'davert', - * 'password' => '123456' - * ], 'submitButtonName'); - * - * ``` - * - * For example, given this sample "Sign Up" form: - * - * ``` html - *
- * Login: - *
- * Password: - *
- * Do you agree to our terms? - *
- * Select pricing plan: - * - * - *
- * ``` - * - * You could write the following to submit it: - * - * ``` php - * submitForm( - * '#userForm', - * [ - * 'user' => [ - * 'login' => 'Davert', - * 'password' => '123456', - * 'agree' => true - * ] - * ], - * 'submitButton' - * ); - * ``` - * Note that "2" will be the submitted value for the "plan" field, as it is - * the selected option. - * - * You can also emulate a JavaScript submission by not specifying any - * buttons in the third parameter to submitForm. - * - * ```php - * submitForm( - * '#userForm', - * [ - * 'user' => [ - * 'login' => 'Davert', - * 'password' => '123456', - * 'agree' => true - * ] - * ] - * ); - * ``` - * - * This function works well when paired with `seeInFormFields()` - * for quickly testing CRUD interfaces and form validation logic. - * - * ``` php - * 'value', - * 'field2' => 'another value', - * 'checkbox1' => true, - * // ... - * ]; - * $I->submitForm('#my-form', $form, 'submitButton'); - * // $I->amOnPage('/path/to/form-page') may be needed - * $I->seeInFormFields('#my-form', $form); - * ``` - * - * Parameter values can be set to arrays for multiple input fields - * of the same name, or multi-select combo boxes. For checkboxes, - * you can use either the string value or boolean `true`/`false` which will - * be replaced by the checkbox's value in the DOM. - * - * ``` php - * submitForm('#my-form', [ - * 'field1' => 'value', - * 'checkbox' => [ - * 'value of first checkbox', - * 'value of second checkbox', - * ], - * 'otherCheckboxes' => [ - * true, - * false, - * false - * ], - * 'multiselect' => [ - * 'first option value', - * 'second option value' - * ] - * ]); - * ``` - * - * Mixing string and boolean values for a checkbox's value is not supported - * and may produce unexpected results. - * - * Field names ending in `[]` must be passed without the trailing square - * bracket characters, and must contain an array for its value. This allows - * submitting multiple values with the same name, consider: - * - * ```php - * submitForm('#my-form', [ - * 'field[]' => 'value', - * 'field[]' => 'another value', // 'field[]' is already a defined key - * ]); - * ``` - * - * The solution is to pass an array value: - * - * ```php - * submitForm('#my-form', [ - * 'field' => [ - * 'value', - * 'another value', - * ] - * ]); - * ``` - * - * @param $selector - * @param $params - * @param $button - * @see \Codeception\Lib\InnerBrowser::submitForm() - */ - public function submitForm($selector, $params, $button = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('submitForm', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Fills a text field or textarea with the given string. - * - * ``` php - * fillField("//input[@type='text']", "Hello World!"); - * $I->fillField(['name' => 'email'], 'jon@mail.com'); - * ?> - * ``` - * - * @param $field - * @param $value - * @see \Codeception\Lib\InnerBrowser::fillField() - */ - public function fillField($field, $value) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('fillField', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Selects an option in a select tag or in radio button group. - * - * ``` php - * selectOption('form select[name=account]', 'Premium'); - * $I->selectOption('form input[name=payment]', 'Monthly'); - * $I->selectOption('//form/select[@name=account]', 'Monthly'); - * ?> - * ``` - * - * Provide an array for the second argument to select multiple options: - * - * ``` php - * selectOption('Which OS do you use?', array('Windows','Linux')); - * ?> - * ``` - * - * Or provide an associative array for the second argument to specifically define which selection method should be used: - * - * ``` php - * selectOption('Which OS do you use?', array('text' => 'Windows')); // Only search by text 'Windows' - * $I->selectOption('Which OS do you use?', array('value' => 'windows')); // Only search by value 'windows' - * ?> - + ``` - * - * @param $select - * @param $option - * @see \Codeception\Lib\InnerBrowser::selectOption() - */ - public function selectOption($select, $option) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('selectOption', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Ticks a checkbox. For radio buttons, use the `selectOption` method instead. - * - * ``` php - * checkOption('#agree'); - * ?> - * ``` - * - * @param $option - * @see \Codeception\Lib\InnerBrowser::checkOption() - */ - public function checkOption($option) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('checkOption', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Unticks a checkbox. - * - * ``` php - * uncheckOption('#notify'); - * ?> - * ``` - * - * @param $option - * @see \Codeception\Lib\InnerBrowser::uncheckOption() - */ - public function uncheckOption($option) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('uncheckOption', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Attaches a file relative to the Codeception data directory to the given file upload field. - * - * ``` php - * attachFile('input[@type="file"]', 'prices.xls'); - * ?> - * ``` - * - * @param $field - * @param $filename - * @see \Codeception\Lib\InnerBrowser::attachFile() - */ - public function attachFile($field, $filename) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('attachFile', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * If your page triggers an ajax request, you can perform it manually. - * This action sends a GET ajax request with specified params. - * - * See ->sendAjaxPostRequest for examples. - * - * @param $uri - * @param $params - * @see \Codeception\Lib\InnerBrowser::sendAjaxGetRequest() - */ - public function sendAjaxGetRequest($uri, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxGetRequest', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * If your page triggers an ajax request, you can perform it manually. - * This action sends a POST ajax request with specified params. - * Additional params can be passed as array. - * - * Example: - * - * Imagine that by clicking checkbox you trigger ajax request which updates user settings. - * We emulate that click by running this ajax request manually. - * - * ``` php - * sendAjaxPostRequest('/updateSettings', array('notifications' => true)); // POST - * $I->sendAjaxGetRequest('/updateSettings', array('notifications' => true)); // GET - * - * ``` - * - * @param $uri - * @param $params - * @see \Codeception\Lib\InnerBrowser::sendAjaxPostRequest() - */ - public function sendAjaxPostRequest($uri, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxPostRequest', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * If your page triggers an ajax request, you can perform it manually. - * This action sends an ajax request with specified method and params. - * - * Example: - * - * You need to perform an ajax request specifying the HTTP method. - * - * ``` php - * sendAjaxRequest('PUT', '/posts/7', array('title' => 'new title')); - * - * ``` - * - * @param $method - * @param $uri - * @param $params - * @see \Codeception\Lib\InnerBrowser::sendAjaxRequest() - */ - public function sendAjaxRequest($method, $uri, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxRequest', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Finds and returns the text contents of the given element. - * If a fuzzy locator is used, the element is found using CSS, XPath, - * and by matching the full page source by regular expression. - * - * ``` php - * grabTextFrom('h1'); - * $heading = $I->grabTextFrom('descendant-or-self::h1'); - * $value = $I->grabTextFrom('~ - * ``` - * - * @param $cssOrXPathOrRegex - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::grabTextFrom() - */ - public function grabTextFrom($cssOrXPathOrRegex) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabTextFrom', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Grabs the value of the given attribute value from the given element. - * Fails if element is not found. - * - * ``` php - * grabAttributeFrom('#tooltip', 'title'); - * ?> - * ``` - * - * - * @param $cssOrXpath - * @param $attribute - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::grabAttributeFrom() - */ - public function grabAttributeFrom($cssOrXpath, $attribute) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabAttributeFrom', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Grabs either the text content, or attribute values, of nodes - * matched by $cssOrXpath and returns them as an array. - * - * ```html - * First - * Second - * Third - * ``` - * - * ```php - * grabMultiple('a'); - * - * // would return ['#first', '#second', '#third'] - * $aLinks = $I->grabMultiple('a', 'href'); - * ?> - * ``` - * - * @param $cssOrXpath - * @param $attribute - * @return string[] - * @see \Codeception\Lib\InnerBrowser::grabMultiple() - */ - public function grabMultiple($cssOrXpath, $attribute = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabMultiple', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * @param $field - * - * @return array|mixed|null|string - * @see \Codeception\Lib\InnerBrowser::grabValueFrom() - */ - public function grabValueFrom($field) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFrom', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Sets a cookie with the given name and value. - * You can set additional cookie params like `domain`, `path`, `expires`, `secure` in array passed as last argument. - * - * ``` php - * setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3'); - * ?> - * ``` - * - * @param $name - * @param $val - * @param array $params - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::setCookie() - */ - public function setCookie($name, $val, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Grabs a cookie value. - * You can set additional cookie params like `domain`, `path` in array passed as last argument. - * - * @param $cookie - * - * @param array $params - * @return mixed - * @see \Codeception\Lib\InnerBrowser::grabCookie() - */ - public function grabCookie($cookie, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that a cookie with the given name is set. - * You can set additional cookie params like `domain`, `path` as array passed in last argument. - * - * ``` php - * seeCookie('PHPSESSID'); - * ?> - * ``` - * - * @param $cookie - * @param array $params - * @return mixed - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeCookie() - */ - public function canSeeCookie($cookie, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that a cookie with the given name is set. - * You can set additional cookie params like `domain`, `path` as array passed in last argument. - * - * ``` php - * seeCookie('PHPSESSID'); - * ?> - * ``` - * - * @param $cookie - * @param array $params - * @return mixed - * @see \Codeception\Lib\InnerBrowser::seeCookie() - */ - public function seeCookie($cookie, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that there isn't a cookie with the given name. - * You can set additional cookie params like `domain`, `path` as array passed in last argument. - * - * @param $cookie - * - * @param array $params - * @return mixed - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeCookie() - */ - public function cantSeeCookie($cookie, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that there isn't a cookie with the given name. - * You can set additional cookie params like `domain`, `path` as array passed in last argument. - * - * @param $cookie - * - * @param array $params - * @return mixed - * @see \Codeception\Lib\InnerBrowser::dontSeeCookie() - */ - public function dontSeeCookie($cookie, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Unsets cookie with the given name. - * You can set additional cookie params like `domain`, `path` in array passed as last argument. - * - * @param $cookie - * - * @param array $params - * @return mixed - * @see \Codeception\Lib\InnerBrowser::resetCookie() - */ - public function resetCookie($name, $params = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given element exists on the page and is visible. - * You can also specify expected attributes of this element. - * - * ``` php - * seeElement('.error'); - * $I->seeElement('//form/input[1]'); - * $I->seeElement('input', ['name' => 'login']); - * $I->seeElement('input', ['value' => '123456']); - * - * // strict locator in first arg, attributes in second - * $I->seeElement(['css' => 'form input'], ['name' => 'login']); - * ?> - * ``` - * - * @param $selector - * @param array $attributes - * @return - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeElement() - */ - public function canSeeElement($selector, $attributes = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeElement', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given element exists on the page and is visible. - * You can also specify expected attributes of this element. - * - * ``` php - * seeElement('.error'); - * $I->seeElement('//form/input[1]'); - * $I->seeElement('input', ['name' => 'login']); - * $I->seeElement('input', ['value' => '123456']); - * - * // strict locator in first arg, attributes in second - * $I->seeElement(['css' => 'form input'], ['name' => 'login']); - * ?> - * ``` - * - * @param $selector - * @param array $attributes - * @return - * @see \Codeception\Lib\InnerBrowser::seeElement() - */ - public function seeElement($selector, $attributes = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElement', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given element is invisible or not present on the page. - * You can also specify expected attributes of this element. - * - * ``` php - * dontSeeElement('.error'); - * $I->dontSeeElement('//form/input[1]'); - * $I->dontSeeElement('input', ['name' => 'login']); - * $I->dontSeeElement('input', ['value' => '123456']); - * ?> - * ``` - * - * @param $selector - * @param array $attributes - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeElement() - */ - public function cantSeeElement($selector, $attributes = null) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeElement', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given element is invisible or not present on the page. - * You can also specify expected attributes of this element. - * - * ``` php - * dontSeeElement('.error'); - * $I->dontSeeElement('//form/input[1]'); - * $I->dontSeeElement('input', ['name' => 'login']); - * $I->dontSeeElement('input', ['value' => '123456']); - * ?> - * ``` - * - * @param $selector - * @param array $attributes - * @see \Codeception\Lib\InnerBrowser::dontSeeElement() - */ - public function dontSeeElement($selector, $attributes = null) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElement', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that there are a certain number of elements matched by the given locator on the page. - * - * ``` php - * seeNumberOfElements('tr', 10); - * $I->seeNumberOfElements('tr', [0,10]); //between 0 and 10 elements - * ?> - * ``` - * @param $selector - * @param mixed $expected : - * - string: strict number - * - array: range of numbers [0,10] - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements() - */ - public function canSeeNumberOfElements($selector, $expected) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumberOfElements', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that there are a certain number of elements matched by the given locator on the page. - * - * ``` php - * seeNumberOfElements('tr', 10); - * $I->seeNumberOfElements('tr', [0,10]); //between 0 and 10 elements - * ?> - * ``` - * @param $selector - * @param mixed $expected : - * - string: strict number - * - array: range of numbers [0,10] - * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements() - */ - public function seeNumberOfElements($selector, $expected) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumberOfElements', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given option is selected. - * - * ``` php - * seeOptionIsSelected('#form input[name=payment]', 'Visa'); - * ?> - * ``` - * - * @param $selector - * @param $optionText - * - * @return mixed - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected() - */ - public function canSeeOptionIsSelected($selector, $optionText) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeOptionIsSelected', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given option is selected. - * - * ``` php - * seeOptionIsSelected('#form input[name=payment]', 'Visa'); - * ?> - * ``` - * - * @param $selector - * @param $optionText - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected() - */ - public function seeOptionIsSelected($selector, $optionText) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeOptionIsSelected', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given option is not selected. - * - * ``` php - * dontSeeOptionIsSelected('#form input[name=payment]', 'Visa'); - * ?> - * ``` - * - * @param $selector - * @param $optionText - * - * @return mixed - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected() - */ - public function cantSeeOptionIsSelected($selector, $optionText) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeOptionIsSelected', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the given option is not selected. - * - * ``` php - * dontSeeOptionIsSelected('#form input[name=payment]', 'Visa'); - * ?> - * ``` - * - * @param $selector - * @param $optionText - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected() - */ - public function dontSeeOptionIsSelected($selector, $optionText) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeOptionIsSelected', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that current page has 404 response status code. - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seePageNotFound() - */ - public function canSeePageNotFound() { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seePageNotFound', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Asserts that current page has 404 response status code. - * @see \Codeception\Lib\InnerBrowser::seePageNotFound() - */ - public function seePageNotFound() { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seePageNotFound', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that response code is equal to value provided. - * - * ```php - * seeResponseCodeIs(200); - * - * // recommended \Codeception\Util\HttpCode - * $I->seeResponseCodeIs(\Codeception\Util\HttpCode::OK); - * ``` - * - * @param $code - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs() - */ - public function canSeeResponseCodeIs($code) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIs', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that response code is equal to value provided. - * - * ```php - * seeResponseCodeIs(200); - * - * // recommended \Codeception\Util\HttpCode - * $I->seeResponseCodeIs(\Codeception\Util\HttpCode::OK); - * ``` - * - * @param $code - * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs() - */ - public function seeResponseCodeIs($code) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIs', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that response code is equal to value provided. - * - * ```php - * dontSeeResponseCodeIs(200); - * - * // recommended \Codeception\Util\HttpCode - * $I->dontSeeResponseCodeIs(\Codeception\Util\HttpCode::OK); - * ``` - * @param $code - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs() - */ - public function cantSeeResponseCodeIs($code) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeResponseCodeIs', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that response code is equal to value provided. - * - * ```php - * dontSeeResponseCodeIs(200); - * - * // recommended \Codeception\Util\HttpCode - * $I->dontSeeResponseCodeIs(\Codeception\Util\HttpCode::OK); - * ``` - * @param $code - * @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs() - */ - public function dontSeeResponseCodeIs($code) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeResponseCodeIs', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the page title contains the given string. - * - * ``` php - * seeInTitle('Blog - Post #1'); - * ?> - * ``` - * - * @param $title - * - * @return mixed - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::seeInTitle() - */ - public function canSeeInTitle($title) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInTitle', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the page title contains the given string. - * - * ``` php - * seeInTitle('Blog - Post #1'); - * ?> - * ``` - * - * @param $title - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::seeInTitle() - */ - public function seeInTitle($title) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInTitle', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the page title does not contain the given string. - * - * @param $title - * - * @return mixed - * Conditional Assertion: Test won't be stopped on fail - * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle() - */ - public function cantSeeInTitle($title) { - return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInTitle', func_get_args())); - } - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Checks that the page title does not contain the given string. - * - * @param $title - * - * @return mixed - * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle() - */ - public function dontSeeInTitle($title) { - return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInTitle', func_get_args())); - } - - - /** - * [!] Method is generated. Documentation taken from corresponding module. - * - * Switch to iframe or frame on the page. - * - * Example: - * ``` html - *