|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilTermsOfServiceUserHasGlobalRoleCriterionTest. More...
Inheritance diagram for ilTermsOfServiceUserHasGlobalRoleCriterionTest:
Collaboration diagram for ilTermsOfServiceUserHasGlobalRoleCriterionTest: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) | |
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.
| ilTermsOfServiceUserHasGlobalRoleCriterionTest::failingConfigProvider | ( | ) |
Definition at line 214 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 49 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceCriterionBaseTest\getObjectDataCacheMock(), and ilTermsOfServiceCriterionBaseTest\getRbacReviewMock().
Referenced by testInstanceCanBeCreated().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::objectCacheProvider | ( | ) |
Definition at line 172 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
| ilTermsOfServiceUserHasGlobalRoleCriterionTest::setUp | ( | ) |
@inheritDoc
Reimplemented from ilTermsOfServiceBaseTest.
Definition at line 34 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceBaseTest\getLanguageMock().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfConfiguredRoleDoesNotMatchTheExpectedFormat | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion, |
| \ilTermsOfServiceCriterionConfig | $config | ||
| ) |
| \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | |
| \ilTermsOfServiceCriterionConfig | $config | @dataProvider failingConfigProvider |
Definition at line 233 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $config, $user, and ilTermsOfServiceUserHasGlobalRoleCriterion\evaluate().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole | ( | ) |
Definition at line 245 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, and Sabre\Event\once().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole | ( | ) |
Definition at line 263 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, and Sabre\Event\once().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole | ( | ) |
Definition at line 286 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $user, and Sabre\Event\once().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testFormUserInterfaceElementsAreProperlyBuilt | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
| \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | @depends testInstanceCanBeCreated |
Definition at line 107 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $form, ilTermsOfServiceUserHasGlobalRoleCriterion\getTypeIdent(), and ilTermsOfServiceUserHasGlobalRoleCriterion\ui().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testInstanceCanBeCreated | ( | ) |
Definition at line 64 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References getInstance().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testTypeIdentPresentationIsANonEmptyString | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
@depends testFormUserInterfaceElementsAreProperlyBuilt
| \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion |
Definition at line 159 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References ilTermsOfServiceCriterionTypeGUI\getIdentPresentation(), and ilTermsOfServiceUserHasGlobalRoleCriterion\ui().
Here is the call graph for this function:| ilTermsOfServiceUserHasGlobalRoleCriterionTest::testValuesFromFormUserInterfaceElementsCanBeRetrieved | ( | \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion | ) |
@depends testFormUserInterfaceElementsAreProperlyBuilt
| \ilTermsOfServiceUserHasGlobalRoleCriterion | $criterion |
Definition at line 130 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
References $form, ilTermsOfServiceCriterionTypeGUI\getConfigByForm(), ilTermsOfServiceUserHasGlobalRoleCriterion\getTypeIdent(), Sabre\Event\once(), and ilTermsOfServiceUserHasGlobalRoleCriterion\ui().
Here is the call graph for this function:
|
protected |
Definition at line 29 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 23 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 20 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 17 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 14 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.
|
protected |
Definition at line 26 of file ilTermsOfServiceUserHasGlobalRoleCriterionTest.php.