diff options
author | Sam Light <samlight1994@gmail.com> | 2025-01-18 23:23:30 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-01-18 23:23:30 +0000 |
commit | 2c8fdd1d6f07ab5d757395e6a9e8ff4de3f6ec53 (patch) | |
tree | c1663b9c4f70c731442432c9f887571f521c9694 /tests/TestCase.php | |
parent | b49d12a5c2536075a1b23289c291d8dda56940e1 (diff) |
More testing setup
Diffstat (limited to 'tests/TestCase.php')
-rw-r--r-- | tests/TestCase.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/TestCase.php b/tests/TestCase.php index 0965940..404f493 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,15 +2,30 @@ namespace Lightscale\LaralightTables\Tests; -use Orchestra\Testbench\TestCase as Orchestra; use Lightscale\LaralightTables\ServiceProvider; +use Orchestra\Testbench\TestCase as Orchestra; +use function Orchestra\Testbench\workbench_path; +use Illuminate\Foundation\Testing\RefreshDatabase; +use Livewire\LivewireServiceProvider; + class TestCase extends Orchestra { + use RefreshDatabase; + protected function getPackageProviders($app) { return [ ServiceProvider::class, + LivewireServiceProvider::class, ]; } + + protected function defineDatabaseMigrations() + { + $this->loadMigrationsFrom( + workbench_path('database/migrations') + ); + } + } |