Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Jun 13, 2024
1 parent fdf445c commit 5bb2761
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Console/MakeSettingsMigrationCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace Spatie\LaravelSettings\Tests\Console;

use Carbon\Carbon;
use Illuminate\Support\Facades\File;

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

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

foreach(File::files($tmpDir) as $file) {
File::delete($file);
}

$this->artisan('make:settings-migration', [
'name' => 'CreateNewTestSettingsMigration',
'path' => $tmpDir,
Expand Down

0 comments on commit 5bb2761

Please sign in to comment.