Skip to content

Commit 5bb2761

Browse files
Fix test
1 parent fdf445c commit 5bb2761

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Console/MakeSettingsMigrationCommandTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
namespace Spatie\LaravelSettings\Tests\Console;
44

55
use Carbon\Carbon;
6+
use Illuminate\Support\Facades\File;
67

78
it('creates a new test settings migration on specified path', function () {
89
$tmpDir = sys_get_temp_dir();
910

1011
Carbon::setTestNow(Carbon::create(2023, 2, 22, 12, 0, 0));
1112

13+
foreach(File::files($tmpDir) as $file) {
14+
File::delete($file);
15+
}
16+
1217
$this->artisan('make:settings-migration', [
1318
'name' => 'CreateNewTestSettingsMigration',
1419
'path' => $tmpDir,

0 commit comments

Comments
 (0)