ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilTermsOfServiceUserHasLanguageCriterionTest. More...
Public Member Functions | |
setUp () | |
testInstanceCanBeCreated () | |
testFormUserInterfaceElementsAreProperlyBuilt (\ilTermsOfServiceUserHasLanguageCriterion $criterion) | |
testValuesFromFormUserInterfaceElementsCanBeRetrieved (\ilTermsOfServiceUserHasLanguageCriterion $criterion) | |
testFormUserInterfaceElementsAreProperlyBuilt More... | |
testTypeIdentPresentationIsANonEmptyString (\ilTermsOfServiceUserHasLanguageCriterion $criterion) | |
testFormUserInterfaceElementsAreProperlyBuilt More... | |
languageProvider () | |
failingConfigProvider () | |
succeedingConfigProvider () | |
testEvaluationFailsIfUserLanguageDoesNotMatchDefinedLanguage (\ilTermsOfServiceUserHasLanguageCriterion $criterion, \ilTermsOfServiceCriterionConfig $config) | |
testEvaluationSucceedsIfUserLanguageDoesMatchDefinedLanguage (\ilTermsOfServiceUserHasLanguageCriterion $criterion, \ilTermsOfServiceCriterionConfig $config) | |
Protected Member Functions | |
getInstance () | |
buildForm (\ilTermsOfServiceCriterionTypeGUI $gui, string $httpCriterionSelectionBodyParameter) | |
Protected Member Functions inherited from ilTermsOfServiceCriterionBaseTest | |
getRbacReviewMock () | |
getObjectDataCacheMock () | |
getRadioGroupMock () | |
getFormMock () | |
getUserMock () | |
Protected Member Functions inherited from ilTermsOfServiceBaseTest | |
setUp () | |
getLanguageMock () | |
setGlobalVariable (string $name, $value) | |
assertException (string $exceptionClass) | |
getCriterionConfig ($value=null) | |
Protected Attributes | |
$lng | |
$expectedInitialValue = 'en' | |
$expectedAfterFormSubmitValue = 'de' | |
$englishLanguageTranslation = 'English' | |
$germanLanguageTranslation = 'German' | |
Protected Attributes inherited from ilTermsOfServiceBaseTest | |
$dic | |
Class ilTermsOfServiceUserHasLanguageCriterionTest.
Definition at line 10 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
|
protected |
\ilTermsOfServiceCriterionTypeGUI | $gui | |
string | $httpCriterionSelectionBodyParameter |
Definition at line 73 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References $form, ilTermsOfServiceCriterionTypeGUI\appendOption(), ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceCriterionBaseTest\getFormMock(), and ilTermsOfServiceCriterionBaseTest\getRadioGroupMock().
Referenced by testFormUserInterfaceElementsAreProperlyBuilt(), and testValuesFromFormUserInterfaceElementsCanBeRetrieved().
ilTermsOfServiceUserHasLanguageCriterionTest::failingConfigProvider | ( | ) |
Definition at line 203 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References ilTermsOfServiceBaseTest\getCriterionConfig(), and getInstance().
|
protected |
Definition at line 50 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
Referenced by failingConfigProvider(), succeedingConfigProvider(), and testInstanceCanBeCreated().
ilTermsOfServiceUserHasLanguageCriterionTest::languageProvider | ( | ) |
Definition at line 161 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References $englishLanguageTranslation, $expectedAfterFormSubmitValue, $expectedInitialValue, $germanLanguageTranslation, $language, $lng, ilTermsOfServiceBaseTest\getCriterionConfig(), and ilTermsOfServiceBaseTest\getLanguageMock().
ilTermsOfServiceUserHasLanguageCriterionTest::setUp | ( | ) |
Definition at line 30 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References ilTermsOfServiceBaseTest\getLanguageMock().
ilTermsOfServiceUserHasLanguageCriterionTest::succeedingConfigProvider | ( | ) |
Definition at line 221 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References ilTermsOfServiceBaseTest\getCriterionConfig(), and getInstance().
ilTermsOfServiceUserHasLanguageCriterionTest::testEvaluationFailsIfUserLanguageDoesNotMatchDefinedLanguage | ( | \ilTermsOfServiceUserHasLanguageCriterion | $criterion, |
\ilTermsOfServiceCriterionConfig | $config | ||
) |
\ilTermsOfServiceUserHasLanguageCriterion | $criterion | |
\ilTermsOfServiceCriterionConfig | $config | failingConfigProvider |
Definition at line 236 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References $user, ilTermsOfServiceUserHasLanguageCriterion\evaluate(), and ilTermsOfServiceCriterionBaseTest\getUserMock().
ilTermsOfServiceUserHasLanguageCriterionTest::testEvaluationSucceedsIfUserLanguageDoesMatchDefinedLanguage | ( | \ilTermsOfServiceUserHasLanguageCriterion | $criterion, |
\ilTermsOfServiceCriterionConfig | $config | ||
) |
\ilTermsOfServiceUserHasLanguageCriterion | $criterion | |
\ilTermsOfServiceCriterionConfig | $config | succeedingConfigProvider |
Definition at line 255 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References $user, ilTermsOfServiceUserHasLanguageCriterion\evaluate(), and ilTermsOfServiceCriterionBaseTest\getUserMock().
ilTermsOfServiceUserHasLanguageCriterionTest::testFormUserInterfaceElementsAreProperlyBuilt | ( | \ilTermsOfServiceUserHasLanguageCriterion | $criterion | ) |
\ilTermsOfServiceUserHasLanguageCriterion | $criterion | testInstanceCanBeCreated |
Definition at line 98 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References $expectedInitialValue, $form, buildForm(), ilTermsOfServiceUserHasLanguageCriterion\getTypeIdent(), and ilTermsOfServiceUserHasLanguageCriterion\ui().
ilTermsOfServiceUserHasLanguageCriterionTest::testInstanceCanBeCreated | ( | ) |
Definition at line 58 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References getInstance().
ilTermsOfServiceUserHasLanguageCriterionTest::testTypeIdentPresentationIsANonEmptyString | ( | \ilTermsOfServiceUserHasLanguageCriterion | $criterion | ) |
testFormUserInterfaceElementsAreProperlyBuilt
\ilTermsOfServiceUserHasLanguageCriterion | $criterion |
Definition at line 148 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References ilTermsOfServiceUserHasLanguageCriterion\ui().
ilTermsOfServiceUserHasLanguageCriterionTest::testValuesFromFormUserInterfaceElementsCanBeRetrieved | ( | \ilTermsOfServiceUserHasLanguageCriterion | $criterion | ) |
testFormUserInterfaceElementsAreProperlyBuilt
\ilTermsOfServiceUserHasLanguageCriterion | $criterion |
Definition at line 120 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
References $expectedAfterFormSubmitValue, $form, buildForm(), ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceUserHasLanguageCriterion\getTypeIdent(), Sabre\Event\once(), and ilTermsOfServiceUserHasLanguageCriterion\ui().
|
protected |
Definition at line 22 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
Referenced by languageProvider().
|
protected |
Definition at line 19 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
Referenced by languageProvider(), and testValuesFromFormUserInterfaceElementsCanBeRetrieved().
|
protected |
Definition at line 16 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
Referenced by languageProvider(), and testFormUserInterfaceElementsAreProperlyBuilt().
|
protected |
Definition at line 25 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
Referenced by languageProvider().
|
protected |
Definition at line 13 of file ilTermsOfServiceUserHasLanguageCriterionTest.php.
Referenced by languageProvider().