|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
MigratedLanguageFileSync::findUnwritableOverlayDirectories(). More...
Inheritance diagram for MigratedLanguageFileSyncUnwritableTest:
Collaboration diagram for MigratedLanguageFileSyncUnwritableTest:Public Member Functions | |
| testAFileInPlaceOfTheOverlayDirectoryIsReported () | |
| Root-proof: a regular file in place of the overlay directory - no user can create it, so it is reported. More... | |
| testAFileInPlaceOfAParentOfTheOverlayDirectoryIsReported () | |
| A file further up (where "<client data dir>/lang" is created) blocks the path just as well. More... | |
| testADanglingSymlinkInTheOverlayPathIsReported (\Closure $link_path) | |
| A dangling symlink does not "exist" for file_exists(), but mkdir() cannot create anything in its place (overlay directory or a parent). More... | |
| testASymlinkToAWritableDirectoryIsNotReported () | |
| A symlink to an existing writable directory is fine (e.g. More... | |
| testAMissingButCreatableOverlayDirectoryIsNotReported () | |
| A missing directory is fine if the closest existing parent is writable: sync() creates it. More... | |
| testAMissingClientDataDirWithACreatableParentIsNotReported () | |
| testAnExistingWritableOverlayDirectoryIsNotReported () | |
| testWithoutClientDataDirNothingIsReported () | |
| testAModuleThatIsNotMigratedForTheLanguageIsIgnored () | |
Only modules migrated for a given language count: without a shipped .po no overlay is written, so a blocked directory is irrelevant (as for modules without contributed directory and the main directory). More... | |
| testEachUnwritableOverlayDirectoryIsReportedOnceAcrossLanguagesAndModules () | |
Each module has an overlay directory per language (lang/<module>/<lang>); each blocked one is reported once. More... | |
Static Public Member Functions | |
| static | danglingSymlinkPositions () |
Static Public Member Functions inherited from MigratedLanguageFileSyncTestCase | |
| static | refreshFlags () |
Additional Inherited Members | |
Protected Member Functions inherited from MigratedLanguageFileSyncTestCase | |
| setUp () | |
| tearDown () | |
| seedShipped (array $entries, string $lang_key='de', string $module=self::MODULE) | |
| seedOverlay (array $entries, string $lang_key='de') | |
| shippedPo (string $lang_key='de', string $module=self::MODULE) | |
| overlayBase (string $lang_key='de') | |
| overlayPo () | |
| sync (array $entries, bool $refresh=false, ?string $client_data_dir='default') | |
| overlayIdentifiers () | |
| overlayDirectory () | |
| findUnwritable (array $lang_keys=['de'], ?string $client_data_dir='default', ?LanguageFileDirectoryManager $manager=null) | |
Protected Attributes inherited from MigratedLanguageFileSyncTestCase | |
| const string | MODULE = 'stest' |
| string | $fixture_directory |
| string | $client_data_dir |
| string | $ilias_root |
| LanguageFileDirectory | $directory |
| LanguageFileDirectoryManager | $manager |
MigratedLanguageFileSync::findUnwritableOverlayDirectories().
Definition at line 34 of file MigratedLanguageFileSyncUnwritableTest.php.
|
static |
Definition at line 75 of file MigratedLanguageFileSyncUnwritableTest.php.
| MigratedLanguageFileSyncUnwritableTest::testADanglingSymlinkInTheOverlayPathIsReported | ( | \Closure | $link_path | ) |
A dangling symlink does not "exist" for file_exists(), but mkdir() cannot create anything in its place (overlay directory or a parent).
Definition at line 60 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), MigratedLanguageFileSyncTestCase\overlayDirectory(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testAFileInPlaceOfAParentOfTheOverlayDirectoryIsReported | ( | ) |
A file further up (where "<client data dir>/lang" is created) blocks the path just as well.
Definition at line 47 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), MigratedLanguageFileSyncTestCase\overlayDirectory(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testAFileInPlaceOfTheOverlayDirectoryIsReported | ( | ) |
Root-proof: a regular file in place of the overlay directory - no user can create it, so it is reported.
Definition at line 37 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), MigratedLanguageFileSyncTestCase\overlayDirectory(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testAMissingButCreatableOverlayDirectoryIsNotReported | ( | ) |
A missing directory is fine if the closest existing parent is writable: sync() creates it.
Definition at line 94 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testAMissingClientDataDirWithACreatableParentIsNotReported | ( | ) |
Definition at line 103 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testAModuleThatIsNotMigratedForTheLanguageIsIgnored | ( | ) |
Only modules migrated for a given language count: without a shipped .po no overlay is written, so a blocked directory is irrelevant (as for modules without contributed directory and the main directory).
Definition at line 130 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testAnExistingWritableOverlayDirectoryIsNotReported | ( | ) |
Definition at line 110 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), MigratedLanguageFileSyncTestCase\overlayDirectory(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testASymlinkToAWritableDirectoryIsNotReported | ( | ) |
A symlink to an existing writable directory is fine (e.g.
a mounted data volume).
Definition at line 84 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testEachUnwritableOverlayDirectoryIsReportedOnceAcrossLanguagesAndModules | ( | ) |
Each module has an overlay directory per language (lang/<module>/<lang>); each blocked one is reported once.
Definition at line 142 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\$manager, MigratedPoFixture\catalog(), MigratedPoFixture\directory(), MigratedLanguageFileSyncTestCase\findUnwritable(), MigratedLanguageFileSyncTestCase\seedShipped(), and MigratedPoFixture\writePo().
Here is the call graph for this function:| MigratedLanguageFileSyncUnwritableTest::testWithoutClientDataDirNothingIsReported | ( | ) |
Definition at line 118 of file MigratedLanguageFileSyncUnwritableTest.php.
References MigratedLanguageFileSyncTestCase\findUnwritable(), and MigratedLanguageFileSyncTestCase\seedShipped().
Here is the call graph for this function: