Skip to content

Commit 068860d

Browse files
committed
fix dummy file creation with unix paths
1 parent 543a782 commit 068860d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Pest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function generateLogFile(?string $fileName = null, ?string $content = null, bool
3939
$fileName = \Illuminate\Support\Str::random().'.log';
4040
}
4141

42+
$fileName = str_replace('/', DIRECTORY_SEPARATOR, $fileName);
43+
4244
$path = storage_path('logs'.DIRECTORY_SEPARATOR.$fileName);
4345
$folder = dirname($path);
4446

0 commit comments

Comments
 (0)