update HiddenFilesTest.php with new app files

'.env' and '.env.example' need to be included in app files, as dot files are now displayable.
The tests did not expect that. I guess they were built with 'hidden files are hidden anyways' in mind.

max line length is 88 (80 + 10% tolerance) chars I assume
This commit is contained in:
Andreas Schneider
2021-09-19 00:38:16 +02:00
committed by GitHub
parent 224fbf0f72
commit c8144cc4d7

View File

@@ -50,11 +50,14 @@ class HiddenFilesTest extends TestCase
[], $this->filePath('.hidden'), false, ['alpha', 'bravo'],
],
'App files' => [
[], 'NOT_A_REAL_FILE', true, ['app', 'index.php', '.hidden'],
[], 'NOT_A_REAL_FILE', true, [
'app', 'index.php', '.hidden', '.env', '.env.example',
],
],
'All' => [
['foo', 'alpha'], $this->filePath('.hidden'), true, [
'foo', 'alpha', 'bravo', 'app', 'index.php', '.hidden',
'foo', 'alpha', 'bravo', 'app', 'index.php', '.hidden', '.env',
'.env.example',
],
],
];