|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Targets LanguageActivity::maybePerformAs() directly via throwing test doubles, for behaviour no concrete Activity can trigger without an artificial collaborator failure. More...
Inheritance diagram for ILIAS\Language\Tests\Activities\LanguageActivityTest:
Collaboration diagram for ILIAS\Language\Tests\Activities\LanguageActivityTest:Public Member Functions | |
| testExceptionWhileBuildingTheInputDescriptionIsMaskedAsA500ResultError () | |
| A defect while building the input description comes back masked as 500 (original only as previous), without reaching rbac. More... | |
| testATypeErrorWhileBuildingTheInputDescriptionIsMaskedAsA500ResultError () | |
| A non-\Exception \Throwable (\TypeError) is masked as well. More... | |
| testADefectThrownByGrindIsMaskedAsA500ResultError () | |
| grind() throws on a defect (FormInput without InputInternal); maybePerformAs() must mask it as 500. More... | |
| testIsAllowedToPerformRefusesNonUsersWithoutAskingRbac (?int $usr_id) | |
| No RBAC lookup for a non-user: the anonymous user (null: ANONYMOUS_USER_ID) must not pass on its roles. More... | |
| testMaybePerformAsAnswers403ForANonUserAndNeverPerforms () | |
| testMaybePerformAsPassesTheTrustedUsrIdToPerformOverASpoofedFormKey () | |
| perform() gets the usr_id of maybePerformAs(), not the spoofed one from normalizeParameters(). More... | |
| testInvalidMarkupCustomizingEntriesAppendTheMarkupConcernedToEachEntry () | |
| Skipped entries are listed with their markup, language-neutral and without duplicates; only the requested languages appear, in requested order. More... | |
| testDuplicateCustomizingEntriesNameWhatEachEntryWouldDuplicate () | |
Static Public Member Functions | |
| static | unknownUserIdProvider () |
Additional Inherited Members | |
Protected Member Functions inherited from ilLanguageBaseTestCase | |
| setUp () | |
| setGlobalVariable (string $name, $value) | |
| rbacOf (\ilRbacSystem $system) | |
| languageFolder (int $ref_id=0) | |
Targets LanguageActivity::maybePerformAs() directly via throwing test doubles, for behaviour no concrete Activity can trigger without an artificial collaborator failure.
Definition at line 38 of file LanguageActivityTest.php.
| ILIAS\Language\Tests\Activities\LanguageActivityTest::testADefectThrownByGrindIsMaskedAsA500ResultError | ( | ) |
grind() throws on a defect (FormInput without InputInternal); maybePerformAs() must mask it as 500.
Definition at line 85 of file LanguageActivityTest.php.
References ILIAS\$error, ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testATypeErrorWhileBuildingTheInputDescriptionIsMaskedAsA500ResultError | ( | ) |
A non-\Exception \Throwable (\TypeError) is masked as well.
Definition at line 68 of file LanguageActivityTest.php.
References ILIAS\$error, ilErrorHandling\getMessage(), ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testDuplicateCustomizingEntriesNameWhatEachEntryWouldDuplicate | ( | ) |
Definition at line 190 of file LanguageActivityTest.php.
References ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testExceptionWhileBuildingTheInputDescriptionIsMaskedAsA500ResultError | ( | ) |
A defect while building the input description comes back masked as 500 (original only as previous), without reaching rbac.
Definition at line 46 of file LanguageActivityTest.php.
References ILIAS\$error, ilErrorHandling\getMessage(), ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testInvalidMarkupCustomizingEntriesAppendTheMarkupConcernedToEachEntry | ( | ) |
Skipped entries are listed with their markup, language-neutral and without duplicates; only the requested languages appear, in requested order.
Definition at line 168 of file LanguageActivityTest.php.
References $policy, ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testIsAllowedToPerformRefusesNonUsersWithoutAskingRbac | ( | ?int | $usr_id | ) |
No RBAC lookup for a non-user: the anonymous user (null: ANONYMOUS_USER_ID) must not pass on its roles.
Definition at line 107 of file LanguageActivityTest.php.
References ANONYMOUS_USER_ID, ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testMaybePerformAsAnswers403ForANonUserAndNeverPerforms | ( | ) |
Definition at line 125 of file LanguageActivityTest.php.
References ILIAS\$error, ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:| ILIAS\Language\Tests\Activities\LanguageActivityTest::testMaybePerformAsPassesTheTrustedUsrIdToPerformOverASpoofedFormKey | ( | ) |
perform() gets the usr_id of maybePerformAs(), not the spoofed one from normalizeParameters().
Needs a dedicated double, as no real Activity collects a 'usr_id' field.
Definition at line 144 of file LanguageActivityTest.php.
References $parameters, ilLanguageBaseTestCase\languageFolder(), and ilLanguageBaseTestCase\rbacOf().
Here is the call graph for this function:
|
static |
Definition at line 100 of file LanguageActivityTest.php.