|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Guards the database handling of ilLanguagesInstalledAndUpdatedObjective: ilSetupLanguage resolves its database lazily, so setDbHandler() must stay authoritative; a regression would be silent because the global fallback takes over again. More...
Inheritance diagram for ilLanguagesInstalledAndUpdatedObjectiveTest:
Collaboration diagram for ilLanguagesInstalledAndUpdatedObjectiveTest:Public Member Functions | |
| testInjectedDatabaseTakesPrecedenceOverTheGlobal () | |
| testAchieveNeedsNoGlobalDatabaseAtAll () | |
| testGetLabelNeedsNoDatabase () | |
| testIsApplicableReadsTheLanguagesForTheLabelFromTheSetupDatabase () | |
| testAchieveReusesTheLanguagesDeterminedInIsApplicable () | |
| testInstallLanguagesActuallyFlushesBothTheNewlyInstalledAndTheAlreadyInstalledLanguage () | |
| A mixed list of installed and not installed keys must flush and reinstall each: the new one via InstallLanguage, the installed one via UpdateLanguage (both built via forSetup() around the same mocked ilSetupLanguage). More... | |
| testFreshlyInstalledLanguageIsImmediatelyRefreshedAgainByUpdateLanguage () | |
| The documented "harmless double cycle": a language just installed by InstallLanguage is flushed again by UpdateLanguage, because getInstalledLanguages() now reports it as installed. More... | |
| testAchieveSkipsInvalidLanguagesAndInformsTheAdministrator () | |
| An invalid language file only skips that language (reported); valid ones are still refreshed. More... | |
| testAchieveReportsSkippedLanguagesViaErrorLogWithoutAdminInteraction () | |
| testAchieveWithOnlyInvalidLanguagesDoesNotThrowAndWritesNothing () | |
| testAchieveDoesNotInformWhenEveryLanguageIsValid () | |
| testWarnsAboutAMissingClientDataDirectoryWhenMigratedModulesExist () | |
| Without a resolvable client data directory no PO/MO overlay can be written: worth a warning instead of silently serving the modules from the database, but only if such a module exists. More... | |
| testNoWarningAboutAMissingClientDataDirectoryWithoutAnyMigratedModule () | |
| Without any migrated module a missing client data directory is no warning. More... | |
| testNoWarningAboutAMissingClientDataDirectoryWithNoValidLanguageKeys () | |
| With every requested language invalid, $language_keys is empty before informAboutMissingClientDataDirectory() is reached: no warning, whatever hasMigratedModules() says. More... | |
| testAchieveWarnsAboutUnwritableOverlayDirectoriesBeforeWritingAndStillUpdates () | |
| Checked before anything is written: unwritable overlay directories of the languages about to be installed or updated are reported by name; the update still runs. More... | |
| testTheWritabilityCheckOnlyCoversTheLanguagesThatAreActuallyWritten () | |
| Invalid languages are skipped before the check. More... | |
| testAchieveInformsAboutTheLanguagesWhoseOverlayCouldNotBeWritten () | |
| Overlays that could not be written although the check passed (race, single unwritable file) are reported from the Activity results, every language once, from InstallLanguage and UpdateLanguage together. More... | |
| testAchieveWarnsAboutSkippedInvalidMarkupEntriesPerLanguage () | |
| Customizing entries left out for disallowed markup (LanguageInstallationManager::getSkippedInvalidMarkupEntries()) are reported as a WARNING per language; the install/update is not aborted. More... | |
| testAchieveWarnsAboutSkippedDuplicateEntriesPerLanguage () | |
| testAchieveWarnsAboutModulesWithAnUnreadableOverlayPerLanguage () | |
| Modules left out because their overlay cannot be read are named per language; without any there is no such warning. More... | |
| testAchieveWarnsAboutOverlaysOfUnshippedModulesPerLanguage () | |
| testAchieveWarnsAboutUnrecordedTakenOverModulesPerLanguage () | |
| testAchieveWarnsAboutInvalidMarkupInPreExistingLocalChanges () | |
| Legacy local changes written before the markup check are never modified or removed, only reported once per run as a WARNING naming the entry. More... | |
| testTheMarkupCheckOfLocalChangesReadsLngDataOnlyWhereItIsStillTheSource (string $lng_data_module, string $source, string $overlay_value, bool $expect_warning) | |
| Disallowed markup in lng_data only counts for modules before the takeover and for plugins; otherwise the overlay is checked. More... | |
| testAchieveDoesNotWarnAboutAnAllowedPreExistingLocalChange () | |
| A legacy local change that is still allowed is not reported. More... | |
| testAchieveDoesNotWarnAboutInvalidMarkupWithoutAnySkippedEntry () | |
| No skipped entries, no such warning. More... | |
| testInstallLanguagesReturnsTheDeduplicatedLanguagesWithAnUnwrittenOverlay () | |
| installLanguages() returns the languages with an unwritten overlay; a missing result key counts as none, duplicates are removed. More... | |
| testInstallLanguagesWithDefaultDirectoriesOnlyReportsTheInstallResult () | |
| With only the default directories no UpdateLanguage runs, so only InstallLanguage's result contributes. More... | |
| testAchieveWarnsWhenSetupDoesNotRunAsTheOwnerOfTheClientDataDirectory () | |
| Writable is not enough: a Setup run as another user than the client data directory's owner is warned about. More... | |
| testAchieveDoesNotWarnWhenSetupRunsAsTheOwnerOfTheClientDataDirectory () | |
| testTheOwnerWarningIsGivenInAdditionToTheUnwritableDirectoriesWarning () | |
| The owner warning comes in addition to the unwritable-directories warning: that one concerns this run, the owner mismatch every later write by the web server. More... | |
| testNoOwnerWarningWithoutAnyMigratedModule () | |
| The owner-mismatch warning only protects a migrated module's overlay: without a migrated module it is not given. More... | |
| testAnInstanceWithDefaultDirectoriesInstallsMissingLanguagesButNeverRefreshes () | |
| An instance with only the default directories (plugin Setup Objectives) must never refresh an installed language: that would drop every component-contributed module from lng_data. More... | |
| testInstallLanguagesWithoutKeysDoesNothing () | |
| testAchieveTakesTheClientDataDirFromTheSetupEnvironment () | |
| testAchieveKeepsTheDefaultResolutionWithoutAUsableClientDataDir (\Closure $resources) | |
| testTheHashIsStableForTheSameDirectoryConfiguration () | |
| testTheDefaultDirectoriesHashDiffersFromAnExplicitlyEqualConfiguration () | |
| The default-directories instance never refreshes, so it must not collide with one built with an equal explicit configuration. More... | |
| testTheHashDiffersForDifferentDirectoryConfigurations (\Closure $a, \Closure $b) | |
| Each part of a directory's configuration (class, prefix, path, suffix) and a contributed directory must change the hash, otherwise the Setup keeps only one of two differently configured objectives. More... | |
| testTheBuildIsAPreconditionOnlyWithDirectoriesOfTheComponentGraph () | |
Static Public Member Functions | |
| static | markupCheckSources () |
| static | incompleteClientEnvironments () |
| static | differingConfigurations () |
Protected Member Functions | |
| setUp () | |
| tearDown () | |
Private Member Functions | |
| createDatabaseMock (string $tag, array &$log) | |
| createSetupLanguageMock (array $installed_language_keys, array &$log) | |
| invokeInstallLanguages (ilLanguagesInstalledAndUpdatedObjective $objective, array $language_keys) | |
| installLanguages() is protected, so it is invoked via reflection, like ilSetupLanguageTest::callCheckLanguage(). More... | |
| createAchievableSetupLanguage (array $installed, array $invalid, array &$flushed, bool $default_directories=false) | |
| databaseStub () | |
| informCollectingEnvironment (array &$messages) | |
| directoryOfAnotherUser (string $own_directory) | |
| iniStub (string $datadir) | |
| achieveCapturingClientDataDir (array $resources) | |
| hashFor (?LanguageFileDirectoryManager $manager) | |
Static Private Member Functions | |
| static | directory (string $prefix, string $path, bool $local=false) |
| static | manager (LanguageFileDirectory ... $directories) |
Private Attributes | |
| bool | $had_global_db |
| mixed | $previous_global_db = null |
Guards the database handling of ilLanguagesInstalledAndUpdatedObjective: ilSetupLanguage resolves its database lazily, so setDbHandler() must stay authoritative; a regression would be silent because the global fallback takes over again.
Definition at line 36 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
private |
| array<string,mixed> | $resources |
Definition at line 938 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
private |
| list<string> | $flushed collects every flushed language key |
Definition at line 262 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
Referenced by testAchieveDoesNotInformWhenEveryLanguageIsValid(), testAchieveInformsAboutTheLanguagesWhoseOverlayCouldNotBeWritten(), testAchieveReportsSkippedLanguagesViaErrorLogWithoutAdminInteraction(), testAchieveSkipsInvalidLanguagesAndInformsTheAdministrator(), testAchieveWarnsAboutInvalidMarkupInPreExistingLocalChanges(), testAchieveWarnsAboutModulesWithAnUnreadableOverlayPerLanguage(), testAchieveWarnsAboutOverlaysOfUnshippedModulesPerLanguage(), testAchieveWarnsAboutSkippedDuplicateEntriesPerLanguage(), testAchieveWarnsAboutSkippedInvalidMarkupEntriesPerLanguage(), testAchieveWarnsAboutUnrecordedTakenOverModulesPerLanguage(), testAchieveWarnsAboutUnwritableOverlayDirectoriesBeforeWritingAndStillUpdates(), testAchieveWithOnlyInvalidLanguagesDoesNotThrowAndWritesNothing(), testNoWarningAboutAMissingClientDataDirectoryWithNoValidLanguageKeys(), testNoWarningAboutAMissingClientDataDirectoryWithoutAnyMigratedModule(), testTheWritabilityCheckOnlyCoversTheLanguagesThatAreActuallyWritten(), and testWarnsAboutAMissingClientDataDirectoryWhenMigratedModulesExist().
Here is the caller graph for this function:
|
private |
| list<string> | $log collects the tag of every database actually queried |
Definition at line 64 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $log, ILIAS\Scripts\PHPStan\$rows, and ILIAS\Repository\object().
Referenced by testAchieveNeedsNoGlobalDatabaseAtAll(), testInjectedDatabaseTakesPrecedenceOverTheGlobal(), and testIsApplicableReadsTheLanguagesForTheLabelFromTheSetupDatabase().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| list<string> | $log collects the language key every write method was called with, in call order |
Definition at line 177 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $log.
Referenced by testInstallLanguagesActuallyFlushesBothTheNewlyInstalledAndTheAlreadyInstalledLanguage().
Here is the caller graph for this function:
|
private |
Definition at line 282 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
Referenced by informCollectingEnvironment(), testAchieveDoesNotInformWhenEveryLanguageIsValid(), testAchieveReportsSkippedLanguagesViaErrorLogWithoutAdminInteraction(), testAchieveSkipsInvalidLanguagesAndInformsTheAdministrator(), testAchieveWithOnlyInvalidLanguagesDoesNotThrowAndWritesNothing(), and testNoWarningAboutAMissingClientDataDirectoryWithoutAnyMigratedModule().
Here is the caller graph for this function:
|
static |
Definition at line 1066 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
staticprivate |
Definition at line 1008 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References MigratedPoFixture\directory().
Here is the call graph for this function:
|
private |
Definition at line 816 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
private |
Definition at line 1022 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
static |
Definition at line 991 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
private |
| list<string> | $messages collects every message passed to AdminInteraction::inform() |
Definition at line 358 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $message, and databaseStub().
Referenced by testAchieveInformsAboutTheLanguagesWhoseOverlayCouldNotBeWritten(), testAchieveWarnsAboutInvalidMarkupInPreExistingLocalChanges(), testAchieveWarnsAboutModulesWithAnUnreadableOverlayPerLanguage(), testAchieveWarnsAboutOverlaysOfUnshippedModulesPerLanguage(), testAchieveWarnsAboutSkippedDuplicateEntriesPerLanguage(), testAchieveWarnsAboutSkippedInvalidMarkupEntriesPerLanguage(), testAchieveWarnsAboutUnrecordedTakenOverModulesPerLanguage(), testAchieveWarnsAboutUnwritableOverlayDirectoriesBeforeWritingAndStillUpdates(), testNoWarningAboutAMissingClientDataDirectoryWithNoValidLanguageKeys(), testTheWritabilityCheckOnlyCoversTheLanguagesThatAreActuallyWritten(), and testWarnsAboutAMissingClientDataDirectoryWhenMigratedModulesExist().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 925 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
private |
installLanguages() is protected, so it is invoked via reflection, like ilSetupLanguageTest::callCheckLanguage().
| list<string> | $language_keys |
Definition at line 199 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
Referenced by testFreshlyInstalledLanguageIsImmediatelyRefreshedAgainByUpdateLanguage(), and testInstallLanguagesActuallyFlushesBothTheNewlyInstalledAndTheAlreadyInstalledLanguage().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 1013 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
static |
Definition at line 625 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
protected |
Definition at line 43 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $GLOBALS, and MigratedPoFixture\resetRuntime().
Here is the call graph for this function:
|
protected |
Definition at line 52 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $GLOBALS, and $previous_global_db.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveDoesNotInformWhenEveryLanguageIsValid | ( | ) |
Definition at line 340 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and databaseStub().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveDoesNotWarnAboutAnAllowedPreExistingLocalChange | ( | ) |
A legacy local change that is still allowed is not reported.
Definition at line 689 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveDoesNotWarnAboutInvalidMarkupWithoutAnySkippedEntry | ( | ) |
No skipped entries, no such warning.
Definition at line 709 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveDoesNotWarnWhenSetupRunsAsTheOwnerOfTheClientDataDirectory | ( | ) |
Definition at line 832 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References MigratedPoFixture\removeDirectory().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveInformsAboutTheLanguagesWhoseOverlayCouldNotBeWritten | ( | ) |
Overlays that could not be written although the check passed (race, single unwritable file) are reported from the Activity results, every language once, from InstallLanguage and UpdateLanguage together.
Definition at line 478 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveKeepsTheDefaultResolutionWithoutAUsableClientDataDir | ( | \Closure | $resources | ) |
| array<string,mixed> | $resources |
Definition at line 977 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References MigratedPoFixture\removeDirectory().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveNeedsNoGlobalDatabaseAtAll | ( | ) |
Definition at line 109 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $GLOBALS, $log, and createDatabaseMock().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveReportsSkippedLanguagesViaErrorLogWithoutAdminInteraction | ( | ) |
Definition at line 311 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and databaseStub().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveReusesTheLanguagesDeterminedInIsApplicable | ( | ) |
Definition at line 153 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveSkipsInvalidLanguagesAndInformsTheAdministrator | ( | ) |
An invalid language file only skips that language (reported); valid ones are still refreshed.
Definition at line 290 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $message, createAchievableSetupLanguage(), and databaseStub().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveTakesTheClientDataDirFromTheSetupEnvironment | ( | ) |
Definition at line 956 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References MigratedPoFixture\removeDirectory().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutInvalidMarkupInPreExistingLocalChanges | ( | ) |
Legacy local changes written before the markup check are never modified or removed, only reported once per run as a WARNING naming the entry.
Definition at line 598 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutModulesWithAnUnreadableOverlayPerLanguage | ( | ) |
Modules left out because their overlay cannot be read are named per language; without any there is no such warning.
Definition at line 545 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutOverlaysOfUnshippedModulesPerLanguage | ( | ) |
Definition at line 562 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutSkippedDuplicateEntriesPerLanguage | ( | ) |
Definition at line 526 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutSkippedInvalidMarkupEntriesPerLanguage | ( | ) |
Customizing entries left out for disallowed markup (LanguageInstallationManager::getSkippedInvalidMarkupEntries()) are reported as a WARNING per language; the install/update is not aborted.
Definition at line 504 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutUnrecordedTakenOverModulesPerLanguage | ( | ) |
Definition at line 578 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsAboutUnwritableOverlayDirectoriesBeforeWritingAndStillUpdates | ( | ) |
Checked before anything is written: unwritable overlay directories of the languages about to be installed or updated are reported by name; the update still runs.
Definition at line 430 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWarnsWhenSetupDoesNotRunAsTheOwnerOfTheClientDataDirectory | ( | ) |
Writable is not enough: a Setup run as another user than the client data directory's owner is warned about.
As root the directory is handed to a non-root user, otherwise "/" (root-owned) serves as another user's directory, which fires the root-specific branch ("$owner === 0", "belongs to root") instead; the assertions therefore branch on the observed owner.
Definition at line 783 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References MigratedPoFixture\removeDirectory().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAchieveWithOnlyInvalidLanguagesDoesNotThrowAndWritesNothing | ( | ) |
Definition at line 325 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and databaseStub().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testAnInstanceWithDefaultDirectoriesInstallsMissingLanguagesButNeverRefreshes | ( | ) |
An instance with only the default directories (plugin Setup Objectives) must never refresh an installed language: that would drop every component-contributed module from lng_data.
Definition at line 905 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testFreshlyInstalledLanguageIsImmediatelyRefreshedAgainByUpdateLanguage | ( | ) |
The documented "harmless double cycle": a language just installed by InstallLanguage is flushed again by UpdateLanguage, because getInstalledLanguages() now reports it as installed.
Intentional, see ilLanguagesInstalledAndUpdatedObjective::installLanguages().
Definition at line 225 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $log, and invokeInstallLanguages().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testGetLabelNeedsNoDatabase | ( | ) |
Definition at line 128 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $GLOBALS.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testInjectedDatabaseTakesPrecedenceOverTheGlobal | ( | ) |
Definition at line 90 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $GLOBALS, $log, and createDatabaseMock().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testInstallLanguagesActuallyFlushesBothTheNewlyInstalledAndTheAlreadyInstalledLanguage | ( | ) |
A mixed list of installed and not installed keys must flush and reinstall each: the new one via InstallLanguage, the installed one via UpdateLanguage (both built via forSetup() around the same mocked ilSetupLanguage).
Definition at line 208 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $log, createSetupLanguageMock(), and invokeInstallLanguages().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testInstallLanguagesReturnsTheDeduplicatedLanguagesWithAnUnwrittenOverlay | ( | ) |
installLanguages() returns the languages with an unwritten overlay; a missing result key counts as none, duplicates are removed.
Definition at line 728 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testInstallLanguagesWithDefaultDirectoriesOnlyReportsTheInstallResult | ( | ) |
With only the default directories no UpdateLanguage runs, so only InstallLanguage's result contributes.
Definition at line 761 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testInstallLanguagesWithoutKeysDoesNothing | ( | ) |
Definition at line 915 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testIsApplicableReadsTheLanguagesForTheLabelFromTheSetupDatabase | ( | ) |
Definition at line 139 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References $GLOBALS, $log, and createDatabaseMock().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testNoOwnerWarningWithoutAnyMigratedModule | ( | ) |
The owner-mismatch warning only protects a migrated module's overlay: without a migrated module it is not given.
Definition at line 883 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testNoWarningAboutAMissingClientDataDirectoryWithNoValidLanguageKeys | ( | ) |
With every requested language invalid, $language_keys is empty before informAboutMissingClientDataDirectory() is reached: no warning, whatever hasMigratedModules() says.
Definition at line 411 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testNoWarningAboutAMissingClientDataDirectoryWithoutAnyMigratedModule | ( | ) |
Without any migrated module a missing client data directory is no warning.
Definition at line 392 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and databaseStub().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheBuildIsAPreconditionOnlyWithDirectoriesOfTheComponentGraph | ( | ) |
Definition at line 1095 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheDefaultDirectoriesHashDiffersFromAnExplicitlyEqualConfiguration | ( | ) |
The default-directories instance never refreshes, so it must not collide with one built with an equal explicit configuration.
Definition at line 1048 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheHashDiffersForDifferentDirectoryConfigurations | ( | \Closure | $a, |
| \Closure | $b | ||
| ) |
Each part of a directory's configuration (class, prefix, path, suffix) and a contributed directory must change the hash, otherwise the Setup keeps only one of two differently configured objectives.
Definition at line 1061 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References Vendor\Package\$a, and Vendor\Package\$b.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheHashIsStableForTheSameDirectoryConfiguration | ( | ) |
Definition at line 1032 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheMarkupCheckOfLocalChangesReadsLngDataOnlyWhereItIsStillTheSource | ( | string | $lng_data_module, |
| string | $source, | ||
| string | $overlay_value, | ||
| bool | $expect_warning | ||
| ) |
Disallowed markup in lng_data only counts for modules before the takeover and for plugins; otherwise the overlay is checked.
Definition at line 638 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheOwnerWarningIsGivenInAdditionToTheUnwritableDirectoriesWarning | ( | ) |
The owner warning comes in addition to the unwritable-directories warning: that one concerns this run, the owner mismatch every later write by the web server.
Definition at line 859 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
| ilLanguagesInstalledAndUpdatedObjectiveTest::testTheWritabilityCheckOnlyCoversTheLanguagesThatAreActuallyWritten | ( | ) |
Invalid languages are skipped before the check.
Definition at line 456 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:| ilLanguagesInstalledAndUpdatedObjectiveTest::testWarnsAboutAMissingClientDataDirectoryWhenMigratedModulesExist | ( | ) |
Without a resolvable client data directory no PO/MO overlay can be written: worth a warning instead of silently serving the modules from the database, but only if such a module exists.
Definition at line 375 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
References createAchievableSetupLanguage(), and informCollectingEnvironment().
Here is the call graph for this function:
|
private |
Definition at line 40 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
|
private |
Definition at line 41 of file ilLanguagesInstalledAndUpdatedObjectiveTest.php.
Referenced by tearDown().