Skip to content

Commit

Permalink
test: fix migrations on Laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw committed Jul 19, 2024
1 parent a806d2f commit 97c4b6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ jobs:
run: composer dump-autoload --optimize --strict-psr

- name: Execute tests
run: composer test
run: |
ls -alh workbench/database/migrations
composer test
10 changes: 10 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
use Orchestra\Testbench\Concerns\WithWorkbench;
use Orchestra\Testbench\TestCase as OrchestraTestCase;

use function Orchestra\Testbench\workbench_path;

abstract class TestCase extends OrchestraTestCase
{
use RefreshDatabase;
use WithWorkbench;

/** @inheritDoc */
protected function defineDatabaseMigrations(): void
{
$this->loadMigrationsFrom(
workbench_path('database/migrations'),
);
}
}

0 comments on commit 97c4b6d

Please sign in to comment.