ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilTermsOfServiceUserHasGlobalRoleCriterionTest. More...
Public Member Functions | |
setUp () | |
@inheritDoc More... | |
testInstanceCanBeCreated () | |
testFormUserInterfaceElementsAreProperlyBuilt (ilTermsOfServiceUserHasGlobalRoleCriterion $criterion) | |
testValuesFromFormUserInterfaceElementsCanBeRetrieved (ilTermsOfServiceUserHasGlobalRoleCriterion $criterion) | |
@depends testFormUserInterfaceElementsAreProperlyBuilt More... | |
testTypeIdentPresentationIsANonEmptyString (ilTermsOfServiceUserHasGlobalRoleCriterion $criterion) | |
@depends testFormUserInterfaceElementsAreProperlyBuilt More... | |
objectCacheProvider () | |
failingConfigProvider () | |
testEvaluationFailsIfConfiguredRoleDoesNotMatchTheExpectedFormat (ilTermsOfServiceUserHasGlobalRoleCriterion $criterion, ilTermsOfServiceCriterionConfig $config) | |
testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole () | |
testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole () | |
testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole () | |
Protected Member Functions | |
getInstance () | |
buildForm (ilTermsOfServiceCriterionTypeGUI $gui, string $httpCriterionSelectionBodyParameter) | |
![]() | |
getRbacReviewMock () | |
getObjectDataCacheMock () | |
getRadioGroupMock () | |
getFormMock () | |
getUserMock () | |
![]() | |
setUp () | |
getLanguageMock () | |
getUiFactoryMock () | |
setGlobalVariable (string $name, $value) | |
getCriterionConfig ($value=null) | |
Protected Attributes | |
$rbacReview | |
$lng | |
$expectedInitialValue = 2 | |
$expectedAfterFormSubmitValue = 4 | |
$userRoleTitle = 'User' | |
$adminRoleTitle = 'Administrator' | |
![]() | |
$dic | |
Class ilTermsOfServiceUserHasGlobalRoleCriterionTest.
Definition at line 12 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
ilTermsOfServiceCriterionTypeGUI | $gui | |
string | $httpCriterionSelectionBodyParameter |
ReflectionException |
Definition at line 83 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
ilTermsOfServiceUserHasGlobalRoleCriterionTest::failingConfigProvider | ( | ) |
ReflectionException |
Definition at line 223 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
ReflectionException |
Definition at line 51 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceCriterionBaseTest\getObjectDataCacheMock(), and ilTermsOfServiceCriterionBaseTest\getRbacReviewMock().
Referenced by testInstanceCanBeCreated().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::objectCacheProvider | ( | ) |
Definition at line 179 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
ilTermsOfServiceUserHasGlobalRoleCriterionTest::setUp | ( | ) |
@inheritDoc
Reimplemented from ilTermsOfServiceBaseTest.
Definition at line 35 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceBaseTest\getLanguageMock().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfConfiguredRoleDoesNotMatchTheExpectedFormat | ( | ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion, |
ilTermsOfServiceCriterionConfig | $config | ||
) |
ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | |
ilTermsOfServiceCriterionConfig | $config | @dataProvider failingConfigProvider |
ReflectionException |
Definition at line 246 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole | ( | ) |
ReflectionException |
Definition at line 258 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceUserHasGlobalRoleCriterion\evaluate().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole | ( | ) |
ReflectionException |
Definition at line 276 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceUserHasGlobalRoleCriterion\evaluate().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole | ( | ) |
ReflectionException |
Definition at line 299 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceUserHasGlobalRoleCriterion\evaluate().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testFormUserInterfaceElementsAreProperlyBuilt | ( | ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | @depends testInstanceCanBeCreated |
ReflectionException |
Definition at line 112 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testInstanceCanBeCreated | ( | ) |
ReflectionException |
Definition at line 67 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References getInstance().
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testTypeIdentPresentationIsANonEmptyString | ( | ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
@depends testFormUserInterfaceElementsAreProperlyBuilt
ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion |
Definition at line 165 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
ilTermsOfServiceUserHasGlobalRoleCriterionTest::testValuesFromFormUserInterfaceElementsCanBeRetrieved | ( | ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
@depends testFormUserInterfaceElementsAreProperlyBuilt
ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion |
ReflectionException |
Definition at line 136 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 30 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 24 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 21 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 18 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 15 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 27 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.