Skip to content

Commit 8f0fb2f

Browse files
committed
MCLOUD-8958: Deployment warning about non empty directory
1 parent d4a430a commit 8f0fb2f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Test/Unit/Filesystem/DirectoryListTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,25 @@ public function getWritableDirectoriesDataProvider(): array
162162
];
163163
}
164164

165+
/**
166+
* @param DirectoryList $directoryList
167+
* @return void
168+
* @dataProvider getDirectoryLists
169+
*/
170+
public function testGetMountPoints(DirectoryList $directoryList)
171+
{
172+
$paths = [
173+
'app/etc',
174+
'pub/media',
175+
'pub/static',
176+
'var'
177+
];
178+
$result = $directoryList->getMountPoints();
179+
sort($result);
180+
sort($paths);
181+
$this->assertSame($paths, $result);
182+
}
183+
165184
/**
166185
* @param DirectoryList $directoryList
167186
* @dataProvider getDirectoryLists

0 commit comments

Comments
 (0)