|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
A line of the customizing file whose identifier exists in another module or in another spelling is left out, named by getSkippedDuplicateEntries() and, for a PO module, not recorded as taken over (language.md rule 2). More...
Inheritance diagram for LanguageInstallationManagerDuplicateIdentifiersTest:
Collaboration diagram for LanguageInstallationManagerDuplicateIdentifiersTest:Public Member Functions | |
| testACustomizingEntryWhoseIdentifierExistsInAnotherModuleIsSkippedButTheRestIsInstalled () | |
| testTheSkippedDuplicatesAreResetOnEveryInsertLanguageCall () | |
| testAnOldCollisionOfTheOwnModuleIsApplied () | |
| An old collision stays editable: the own module holds the identifier in this very spelling. More... | |
| testEntriesOfTheSameRunCountAsExisting (array $shipped_lang_lines, ?array $shipped_po, string $expected_duplicate) | |
| lng_data is emptied before an installation, so what this run writes besides counts as existing: the lines of the shipped file and the shipped .po of a PO module. More... | |
| testAModuleWithADuplicateCustomizingEntryIsNotRecordedUntilItIsFixed () | |
Static Public Member Functions | |
| static | entriesOfTheSameRun () |
Private Member Functions | |
| takenOver () | |
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);' |
A line of the customizing file whose identifier exists in another module or in another spelling is left out, named by getSkippedDuplicateEntries() and, for a PO module, not recorded as taken over (language.md rule 2).
Definition at line 27 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
|
static |
Definition at line 102 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
|
private |
Definition at line 132 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
Referenced by testAModuleWithADuplicateCustomizingEntryIsNotRecordedUntilItIsFixed().
Here is the caller graph for this function:| LanguageInstallationManagerDuplicateIdentifiersTest::testACustomizingEntryWhoseIdentifierExistsInAnotherModuleIsSkippedButTheRestIsInstalled | ( | ) |
Definition at line 29 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\loggedWarnings(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerDuplicateIdentifiersTest::testAModuleWithADuplicateCustomizingEntryIsNotRecordedUntilItIsFixed | ( | ) |
Definition at line 111 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\shipPo(), LanguageInstallationManagerMigratedModulesTestCase\shipSecondModule(), takenOver(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerDuplicateIdentifiersTest::testAnOldCollisionOfTheOwnModuleIsApplied | ( | ) |
An old collision stays editable: the own module holds the identifier in this very spelling.
Definition at line 64 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerDuplicateIdentifiersTest::testEntriesOfTheSameRunCountAsExisting | ( | array | $shipped_lang_lines, |
| ?array | $shipped_po, | ||
| string | $expected_duplicate | ||
| ) |
lng_data is emptied before an installation, so what this run writes besides counts as existing: the lines of the shipped file and the shipped .po of a PO module.
| list<string> | $shipped_lang_lines |
| ?array<string,string> | $shipped_po |
Definition at line 85 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\manager(), LanguageInstallationManagerMigratedModulesTestCase\shipPo(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function:| LanguageInstallationManagerDuplicateIdentifiersTest::testTheSkippedDuplicatesAreResetOnEveryInsertLanguageCall | ( | ) |
Definition at line 46 of file LanguageInstallationManagerDuplicateIdentifiersTest.php.
References LanguageInstallationManagerMigratedModulesTestCase\expectManagerWarning(), LanguageInstallationManagerMigratedModulesTestCase\lngModules(), LanguageInstallationManagerMigratedModulesTestCase\manager(), and LanguageInstallationManagerMigratedModulesTestCase\writeLang().
Here is the call graph for this function: