Skip to content

Commit

Permalink
Use defer instead of deprecated tap
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Dec 30, 2024
1 parent 255603c commit 7a3dc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Commands/CreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
});

it('can create a snapshot with specific name')
->tap(fn () => Artisan::call('snapshot:create', ['name' => 'test']))
->defer(fn () => Artisan::call('snapshot:create', ['name' => 'test']))
->expect('test.sql')
->fileOnDiskToPassRegex('/CREATE TABLE(?: IF NOT EXISTS){0,1} "models"/');

Expand Down

0 comments on commit 7a3dc0d

Please sign in to comment.