Skip to content

Commit

Permalink
fix dummy file creation with unix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
arukompas committed Feb 19, 2025
1 parent 543a782 commit 068860d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function generateLogFile(?string $fileName = null, ?string $content = null, bool
$fileName = \Illuminate\Support\Str::random().'.log';
}

$fileName = str_replace('/', DIRECTORY_SEPARATOR, $fileName);

$path = storage_path('logs'.DIRECTORY_SEPARATOR.$fileName);
$folder = dirname($path);

Expand Down

0 comments on commit 068860d

Please sign in to comment.