ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilTermsOfServiceUserHasGlobalRoleCriterionTest. More...
Public Member Functions | |
setUp () | |
testInstanceCanBeCreated () | |
testFormUserInterfaceElementsAreProperlyBuilt (\ilTermsOfServiceUserHasGlobalRoleCriterion $criterion) | |
testValuesFromFormUserInterfaceElementsCanBeRetrieved (\ilTermsOfServiceUserHasGlobalRoleCriterion $criterion) | |
testFormUserInterfaceElementsAreProperlyBuilt More... | |
testTypeIdentPresentationIsANonEmptyString (\ilTermsOfServiceUserHasGlobalRoleCriterion $criterion) | |
testFormUserInterfaceElementsAreProperlyBuilt More... | |
objectCacheProvider () | |
failingConfigProvider () | |
testEvaluationFailsIfConfiguredRoleDoesNotMatchTheExpectedFormat (\ilTermsOfServiceUserHasGlobalRoleCriterion $criterion, \ilTermsOfServiceCriterionConfig $config) | |
testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole () | |
testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole () | |
testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole () | |
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 | |
$rbacReview | |
$lng | |
$expectedInitialValue = 2 | |
$expectedAfterFormSubmitValue = 4 | |
$userRoleTitle = 'User' | |
$adminRoleTitle = 'Administrator' | |
Protected Attributes inherited from ilTermsOfServiceBaseTest | |
$dic | |
Class ilTermsOfServiceUserHasGlobalRoleCriterionTest.
Definition at line 11 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
\ilTermsOfServiceCriterionTypeGUI | $gui | |
string | $httpCriterionSelectionBodyParameter |
Definition at line 79 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $form, ilTermsOfServiceCriterionTypeGUI\appendOption(), ilTermsOfServiceCriterionBaseTest\getFormMock(), and ilTermsOfServiceCriterionBaseTest\getRadioGroupMock().
Referenced by testFormUserInterfaceElementsAreProperlyBuilt(), and testValuesFromFormUserInterfaceElementsCanBeRetrieved().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::failingConfigProvider | ( | ) |
Definition at line 214 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceBaseTest\getCriterionConfig(), and getInstance().
|
protected |
Definition at line 49 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceCriterionBaseTest\getObjectDataCacheMock(), and ilTermsOfServiceCriterionBaseTest\getRbacReviewMock().
Referenced by failingConfigProvider(), testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole(), testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole(), testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole(), and testInstanceCanBeCreated().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::objectCacheProvider | ( | ) |
Definition at line 172 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $adminRoleTitle, $expectedAfterFormSubmitValue, $expectedInitialValue, $rbacReview, $userRoleTitle, ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceCriterionBaseTest\getObjectDataCacheMock(), and ilTermsOfServiceCriterionBaseTest\getRbacReviewMock().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::setUp | ( | ) |
Definition at line 34 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceBaseTest\getLanguageMock().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfConfiguredRoleDoesNotMatchTheExpectedFormat | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion, |
\ilTermsOfServiceCriterionConfig | $config | ||
) |
\ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | |
\ilTermsOfServiceCriterionConfig | $config | failingConfigProvider |
Definition at line 233 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, ilTermsOfServiceUserHasGlobalRoleCriterion\evaluate(), and ilTermsOfServiceCriterionBaseTest\getUserMock().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole | ( | ) |
Definition at line 245 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, getInstance(), ilTermsOfServiceCriterionBaseTest\getUserMock(), and Sabre\Event\once().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole | ( | ) |
Definition at line 263 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, getInstance(), ilTermsOfServiceCriterionBaseTest\getUserMock(), and Sabre\Event\once().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole | ( | ) |
Definition at line 286 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, getInstance(), ilTermsOfServiceCriterionBaseTest\getUserMock(), and Sabre\Event\once().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testFormUserInterfaceElementsAreProperlyBuilt | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
\ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | testInstanceCanBeCreated |
Definition at line 107 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $expectedInitialValue, $form, buildForm(), ilTermsOfServiceUserHasGlobalRoleCriterion\getTypeIdent(), and ilTermsOfServiceUserHasGlobalRoleCriterion\ui().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testInstanceCanBeCreated | ( | ) |
Definition at line 64 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References getInstance().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testTypeIdentPresentationIsANonEmptyString | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
testFormUserInterfaceElementsAreProperlyBuilt
\ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion |
Definition at line 159 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceUserHasGlobalRoleCriterion\ui().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testValuesFromFormUserInterfaceElementsCanBeRetrieved | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
testFormUserInterfaceElementsAreProperlyBuilt
\ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion |
Definition at line 130 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $expectedAfterFormSubmitValue, $form, buildForm(), ilTermsOfServiceBaseTest\getCriterionConfig(), ilTermsOfServiceUserHasGlobalRoleCriterion\getTypeIdent(), Sabre\Event\once(), and ilTermsOfServiceUserHasGlobalRoleCriterion\ui().
|
protected |
Definition at line 29 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
Referenced by objectCacheProvider().
|
protected |
Definition at line 23 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
Referenced by objectCacheProvider(), and testValuesFromFormUserInterfaceElementsCanBeRetrieved().
|
protected |
Definition at line 20 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
Referenced by objectCacheProvider(), and testFormUserInterfaceElementsAreProperlyBuilt().
|
protected |
Definition at line 17 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 14 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
Referenced by objectCacheProvider().
|
protected |
Definition at line 26 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
Referenced by objectCacheProvider().