ILIAS
release_8 Revision v8.19
|
Class ilTermsOfServiceUserHasCountryCriterionTest. More...
Public Member Functions | |
testInstanceCanBeCreated () | |
testFormUserInterfaceElementsAreProperlyBuilt (ilTermsOfServiceUserHasCountryCriterion $criterion) | |
testValuesFromFormUserInterfaceElementsCanBeRetrieved (ilTermsOfServiceUserHasCountryCriterion $criterion) | |
testFormUserInterfaceElementsAreProperlyBuilt More... | |
testTypeIdentPresentationIsANonEmptyString (ilTermsOfServiceUserHasCountryCriterion $criterion) | |
testFormUserInterfaceElementsAreProperlyBuilt More... | |
countryProvider () | |
failingConfigProvider () | |
succeedingConfigProvider () | |
testEvaluationFailsIfUserCountryDoesNotMatchDefinedLanguage (ilTermsOfServiceUserHasCountryCriterion $criterion, ilTermsOfServiceCriterionConfig $config) | |
testEvaluationSucceedsIfUserCountryDoesMatchDefinedLanguage (ilTermsOfServiceUserHasCountryCriterion $criterion, ilTermsOfServiceCriterionConfig $config) | |
Protected Member Functions | |
setUp () | |
getInstance () | |
buildForm (ilTermsOfServiceCriterionTypeGUI $gui, string $httpCriterionSelectionBodyParameter) | |
![]() | |
getRbacReviewMock () | |
getObjectDataCacheMock () | |
getRadioGroupMock () | |
getFormMock () | |
getUserMock () | |
![]() | |
setUp () | |
getLanguageMock () | |
getUiFactoryMock () | |
setGlobalVariable (string $name, $value) | |
getCriterionConfig ($value=null) | |
Protected Attributes | |
ilLanguage | $lng |
string | $expectedInitialValue = 'EN' |
string | $expectedAfterFormSubmitValue = 'DE' |
string | $englishLanguageTranslation = 'English' |
string | $germanLanguageTranslation = 'German' |
array | $countries = [] |
![]() | |
Container | $dic |
Class ilTermsOfServiceUserHasCountryCriterionTest.
Definition at line 29 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
|
protected |
ilTermsOfServiceCriterionTypeGUI | $gui | |
string | $httpCriterionSelectionBodyParameter |
Definition at line 73 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ilTermsOfServiceCriterionTypeGUI\appendOption(), ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceCriterionBaseTest\getFormMock(), and ilTermsOfServiceCriterionBaseTest\getRadioGroupMock().
Referenced by testFormUserInterfaceElementsAreProperlyBuilt(), and testValuesFromFormUserInterfaceElementsCanBeRetrieved().
ilTermsOfServiceUserHasCountryCriterionTest::countryProvider | ( | ) |
Definition at line 163 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References $englishLanguageTranslation, $expectedAfterFormSubmitValue, $expectedInitialValue, $germanLanguageTranslation, ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceBaseTest\getLanguageMock(), and ilTermsOfServiceBaseTest\getUiFactoryMock().
ilTermsOfServiceUserHasCountryCriterionTest::failingConfigProvider | ( | ) |
Definition at line 200 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ilTermsOfServiceBaseTest\getCriterionConfig(), and getInstance().
|
protected |
Definition at line 53 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
Referenced by failingConfigProvider(), succeedingConfigProvider(), and testInstanceCanBeCreated().
|
protected |
Definition at line 40 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ilTermsOfServiceBaseTest\getLanguageMock(), and ILIAS\Repository\lng().
ilTermsOfServiceUserHasCountryCriterionTest::succeedingConfigProvider | ( | ) |
Definition at line 218 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ilTermsOfServiceBaseTest\getCriterionConfig(), and getInstance().
ilTermsOfServiceUserHasCountryCriterionTest::testEvaluationFailsIfUserCountryDoesNotMatchDefinedLanguage | ( | ilTermsOfServiceUserHasCountryCriterion | $criterion, |
ilTermsOfServiceCriterionConfig | $config | ||
) |
ilTermsOfServiceUserHasCountryCriterion | $criterion | |
ilTermsOfServiceCriterionConfig | $config | failingConfigProvider |
Definition at line 233 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ilTermsOfServiceUserHasCountryCriterion\evaluate(), and ilTermsOfServiceCriterionBaseTest\getUserMock().
ilTermsOfServiceUserHasCountryCriterionTest::testEvaluationSucceedsIfUserCountryDoesMatchDefinedLanguage | ( | ilTermsOfServiceUserHasCountryCriterion | $criterion, |
ilTermsOfServiceCriterionConfig | $config | ||
) |
ilTermsOfServiceUserHasCountryCriterion | $criterion | |
ilTermsOfServiceCriterionConfig | $config | succeedingConfigProvider |
Definition at line 251 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ilTermsOfServiceUserHasCountryCriterion\evaluate(), and ilTermsOfServiceCriterionBaseTest\getUserMock().
ilTermsOfServiceUserHasCountryCriterionTest::testFormUserInterfaceElementsAreProperlyBuilt | ( | ilTermsOfServiceUserHasCountryCriterion | $criterion | ) |
ilTermsOfServiceUserHasCountryCriterion | $criterion | testInstanceCanBeCreated |
Definition at line 97 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References $expectedInitialValue, buildForm(), ilTermsOfServiceUserHasCountryCriterion\getTypeIdent(), ILIAS\Repository\lng(), and ilTermsOfServiceUserHasCountryCriterion\ui().
ilTermsOfServiceUserHasCountryCriterionTest::testInstanceCanBeCreated | ( | ) |
Definition at line 58 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References getInstance().
ilTermsOfServiceUserHasCountryCriterionTest::testTypeIdentPresentationIsANonEmptyString | ( | ilTermsOfServiceUserHasCountryCriterion | $criterion | ) |
testFormUserInterfaceElementsAreProperlyBuilt
ilTermsOfServiceUserHasCountryCriterion | $criterion |
Definition at line 149 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References ILIAS\Repository\lng(), and ilTermsOfServiceUserHasCountryCriterion\ui().
ilTermsOfServiceUserHasCountryCriterionTest::testValuesFromFormUserInterfaceElementsCanBeRetrieved | ( | ilTermsOfServiceUserHasCountryCriterion | $criterion | ) |
testFormUserInterfaceElementsAreProperlyBuilt
ilTermsOfServiceUserHasCountryCriterion | $criterion |
Definition at line 120 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
References $expectedAfterFormSubmitValue, buildForm(), ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceUserHasCountryCriterion\getTypeIdent(), ILIAS\Repository\lng(), and ilTermsOfServiceUserHasCountryCriterion\ui().
|
protected |
Definition at line 38 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
|
protected |
Definition at line 35 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
Referenced by countryProvider().
|
protected |
Definition at line 34 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
Referenced by countryProvider(), and testValuesFromFormUserInterfaceElementsCanBeRetrieved().
|
protected |
Definition at line 33 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
Referenced by countryProvider(), and testFormUserInterfaceElementsAreProperlyBuilt().
|
protected |
Definition at line 36 of file ilTermsOfServiceUserHasCountryCriterionTest.php.
Referenced by countryProvider().
|
protected |
Definition at line 32 of file ilTermsOfServiceUserHasCountryCriterionTest.php.