Skip to content

Commit

Permalink
fix: attempt to fix migrations table error on Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
czernika committed Mar 19, 2024
1 parent a95e2d8 commit 068c265
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
use Orchid\Support\Facades\Alert;
use Tabuna\Breadcrumbs\Breadcrumbs;
use Watson\Active\Active;
use Orchestra\Testbench\Attributes\WithMigration;

#[WithMigration]
abstract class TestCase extends BaseTestCase
{
use WithWorkbench, InteractsWithViews, RefreshDatabase;
Expand Down Expand Up @@ -51,10 +53,7 @@ protected function getPackageAliases($app): array
protected function defineDatabaseMigrations()
{
$this->loadLaravelMigrations();
$this->loadMigrationsFrom([
'--path' => dirname(__DIR__, 1) . '/database/migrations',
'--database' => 'sqlite',
]);
$this->loadMigrationsFrom(dirname(__DIR__, 1) . '/database/migrations');
$this->artisan('orchid:install');
}

Expand Down

0 comments on commit 068c265

Please sign in to comment.