Skip to content

Commit

Permalink
Set temp dir in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 9, 2024
1 parent dbed277 commit c4f8f28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/AudioWaveformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ protected function tearDown(): void
*/
public function itConvertsAudioFile(string $audioFilePath): void
{
config(['media-library.temporary_directory_path' => sys_get_temp_dir()]);
$generator = new AudioWaveform();
$imageFilePath = $generator->convert($audioFilePath);

Expand All @@ -37,6 +38,7 @@ public function itConvertsAudioFile(string $audioFilePath): void
/** @test */
public function itConvertsAudioFileWithCustomColors(): void
{
config(['media-library.temporary_directory_path' => sys_get_temp_dir()]);
$generator = new AudioWaveform(
foreground: '#ffffff',
background: '#000000'
Expand All @@ -55,6 +57,7 @@ public function itConvertsAudioFileWithCustomColors(): void
/** @test */
public function itConvertsAudioFileWithCustomDimensions(): void
{
config(['media-library.temporary_directory_path' => sys_get_temp_dir()]);
$generator = new AudioWaveform(
width: 2048,
height: 512
Expand Down

0 comments on commit c4f8f28

Please sign in to comment.