generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration calls in tests and expand README
Initialize and reset database migrations before and after each test to ensure a clean state. Updated README with package features and streamlined documentation. Added a test for retrieving all settings.
- Loading branch information
1 parent
b374118
commit 2064b7e
Showing
3 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Artisan; | ||
use Step2Dev\LazySetting\Tests\TestCase; | ||
|
||
uses(TestCase::class)->in(__DIR__); | ||
|
||
beforeEach(function () { | ||
Artisan::call('migrate'); | ||
}); | ||
|
||
afterEach(function () { | ||
Artisan::call('migrate:reset'); | ||
}); |