|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for LanguageInstallationManagerMigratedAfterWriteTest:
Collaboration diagram for LanguageInstallationManagerMigratedAfterWriteTest:Static Public Member Functions | |
| static | writePaths () |
| static | noClientDataDir () |
Additional Inherited Members | |
Protected Member Functions inherited from LanguageInstallationManagerMigratedModulesTestCase | |
| setUp () | |
| tearDown () | |
| db () | |
| repository () | |
| manager (?\Closure $client_data_dir_resolver=null, ?\Closure $language_cache_invalidator=null, bool $with_resolver=true, bool $with_logger=true, ?LoggerInterface $logger=null) | |
| expectManagerWarning () | |
| assertPostConditions () | |
| loggedWarnings () | |
| shipPo (array $entries, string $lang_key='de') | |
| shipSecondModule (array $entries) | |
| A second migrated module "pilot2" next to "pilot". More... | |
| seedOverlay (array $entries) | |
| overlayBase () | |
| overlayPo () | |
| effective () | |
Shipped .po plus overlay delta, as served (MigratedLanguageFileSync::loadModuleTranslations()) - the overlay itself only holds the entries that differ from the shipped .po. More... | |
| writeLang (string $relative_file, array $lines) | |
| resolveToken (string $token) | |
| lngData () | |
| applyLngDataDelete (string $query, array $rows) | |
| Applies one recorded "DELETE FROM lng_data" to $rows, in the two shapes LanguageInstallationManager issues: the bulk delete of unchanged rows of a migrated module ("... local_change IS NULL AND module IN (...)") and the per-module delete of dropped identifiers ("... AND module = ? AND identifier IN (...)"). More... | |
| droppedIdentifiers (string $module) | |
| Identifiers of $module dropped via the per-module "DELETE FROM lng_data ... AND identifier IN (...)", as opposed to keys merely absent because they were never touched. More... | |
| lngModules () | |
| errorLog () | |
| What error_log() wrote during this test so far - PHPUnit redirects error_log to a capture file per test (call expectErrorLog() in tests that expect logging, so it is not echoed). More... | |
| shipPluralPo (array $entries, string $header) | |
| writeLocalOverlay (array $flat_values) | |
| seedOverlayMarkedAsMerged (array $entries, array $merged) | |
Protected Attributes inherited from LanguageInstallationManagerMigratedModulesTestCase | |
| const string | NOW = '2026-01-02 03:04:05' |
| const string | MODULE = 'pilot' |
| string | $root |
| LanguageFileDirectory | $directory |
| array | $further_directories = [] |
| array | $quoted = [] |
| array | $queries = [] |
| array | $collation_rows = null |
| array | $pending_rows = [] |
| array | $duplicate_rows = [] |
| array | $local_change_rows = [] |
| array | $db_local_changes = [] |
| array | $db_entries = [] |
| array | $available_languages = [] |
| array | $logged_warnings = [] |
| const string | TWO_FORMS = 'nplurals=2; plural=(n != 1);' |
| const string | THREE_FORMS = 'nplurals=3; plural=(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);' |
Definition at line 34 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
|
static |
Definition at line 281 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
| LanguageInstallationManagerMigratedAfterWriteTest::testADuplicateInOneFileKeepsTheFirstOccurrenceAndIsReported | ( | ) |
Shipped ilias_fa.lang/ilias_nl.lang contain duplicates: the first occurrence wins, the update does not abort, and the duplicates are reported.
Definition at line 290 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\lngData(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\loggedWarnings(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testAFailingCacheInvalidatorIsLoggedAndSwallowed | ( | ) |
Definition at line 91 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\loggedWarnings(), LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\overlayBase(), MigratedPoFixture\overlayMo(), LanguageInstallationManagerMigratedModulesTestCase\seedOverlay(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testAModuleArrayThatCannotBeReadBackThrowsLanguageDataNotSaved | ( | ) |
Definition at line 36 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References Vendor\Package\$e, LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\MODULE, LanguageInstallationManagerMigratedModulesTestCase\overlayBase(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testAnOverlaySyncFailureIsLoggedAndTheDatabaseWriteStays | ( | ) |
Root-proof overlay failure (a file where the overlay's "lang" directory must be created): logged, the database write stays.
Definition at line 139 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\loggedWarnings(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testASerializedFalseIsAlsoDetectedAsNotSaved | ( | ) |
Definition at line 69 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testAThrowingLoggerFallsBackToThePhpErrorLogAndDoesNotAbortTheInstallation | ( | ) |
Definition at line 120 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Export\$logger, LanguageInstallationManagerMigratedModulesTestCase\errorLog(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testEveryWritePathReturnsNothingWhenTheOverlayWasWritten | ( | string | $method, |
| bool | $writes_overlay | ||
| ) |
Definition at line 189 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\overlayBase(), MigratedPoFixture\overlayMo(), LanguageInstallationManagerMigratedModulesTestCase\shipPo(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testEveryWritePathReturnsOnlyTheModulesWhoseOverlayCouldNotBeWritten | ( | string | $method, |
| bool | $writes_overlay | ||
| ) |
The same failure is returned by all three write paths - and only the migrated module whose overlay failed is listed, never a non-migrated one written in the same run.
Definition at line 166 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\shipPo(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testFindUnwritableOverlayDirectoriesChecksTheResolvedClientDataDir | ( | ) |
Checked against the client data directory the instance maintains the overlay in (resolved at call time), for the migrated modules of the given languages only.
Definition at line 227 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References ILIAS\Scripts\PHPStan\$target, LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testTheLanguageCacheIsInvalidatedWithTheLanguageKeyBeforeTheOverlayIsSynced | ( | ) |
@lang text
Definition at line 78 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\overlayBase(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testTheResolversClientDataDirIsUsedAndResolvedAtCallTime | ( | ) |
Definition at line 248 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References ILIAS\Scripts\PHPStan\$target, LanguageInstallationManagerMigratedModulesTestCase\manager(), MigratedPoFixture\overlayMo(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testTheSameEntryInTwoDifferentFilesIsNotADuplicate | ( | ) |
Definition at line 307 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\loggedWarnings(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testWithoutALoggerAWarningGoesToThePhpErrorLog | ( | ) |
Definition at line 107 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\errorLog(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testWithoutClientDataDirNothingIsReturnedAsUnwritten | ( | ) |
No overlay is maintained without client data directory - that is not a failure to report.
Definition at line 216 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:| LanguageInstallationManagerMigratedAfterWriteTest::testWithoutClientDataDirTheDatabaseIsWrittenButNoOverlay | ( | bool | $with_resolver | ) |
Definition at line 268 of file LanguageInstallationManagerMigratedAfterWriteTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\shipPo().
Here is the call graph for this function:
|
static |
Definition at line 204 of file LanguageInstallationManagerMigratedAfterWriteTest.php.