Skip to content

Commit 5d1b976

Browse files
committed
Fixing possible non-existent dir in test
1 parent 38f7887 commit 5d1b976

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/FileManagerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public function testGetPathForFutureClass()
6464
];
6565

6666
$fs = new Filesystem();
67+
if (!file_exists(self::$currentRootDir)) {
68+
$fs->mkdir(self::$currentRootDir);
69+
}
70+
6771
$fs->remove(self::$currentRootDir.'/vendor');
6872
file_put_contents(
6973
self::$currentRootDir.'/composer.json',

0 commit comments

Comments
 (0)