Skip to content

Commit f5fa02c

Browse files
committed
🚨 ask orchestra nicely to run laravels migrations to give us the user table
1 parent 816ab0f commit f5fa02c

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

‎tests/Console/Commands/CleanCommandTest.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
use SynergiTech\Multiconfig\Eloquent\Setting;
77
use Illuminate\Foundation\Testing\RefreshDatabase;
88
use Illuminate\Support\Facades\DB;
9+
use Orchestra\Testbench\Attributes\WithMigration;
910
use Tests\BaseTestCase;
1011
use Tests\Dummies\DummyModel;
1112

13+
#[WithMigration]
1214
class CleanCommandTest extends BaseTestCase
1315
{
1416
use RefreshDatabase;

‎tests/Console/Commands/MigrateCommandTest.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
use Illuminate\Support\Collection;
1818
use Illuminate\Support\Facades\DB;
1919
use Mockery;
20+
use Orchestra\Testbench\Attributes\WithMigration;
2021
use Tests\BaseTestCase;
2122
use Tests\Dummies\DummyModel;
2223

24+
#[WithMigration]
2325
class MigrateCommandTest extends BaseTestCase
2426
{
2527
use RefreshDatabase;

‎tests/Eloquent/Scopes/FilterBySettingTest.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
use Illuminate\Database\Eloquent\Builder;
1010
use Illuminate\Database\Eloquent\Model;
1111
use Illuminate\Foundation\Testing\RefreshDatabase;
12+
use Orchestra\Testbench\Attributes\WithMigration;
1213
use Tests\BaseTestCase;
1314
use Tests\Dummies\DummyModel;
1415

16+
#[WithMigration]
1517
class FilterBySettingTest extends BaseTestCase
1618
{
1719
use RefreshDatabase;

‎tests/HasConfigTest.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
use Illuminate\Support\Facades\Schema;
2121
use Illuminate\Support\HigherOrderCollectionProxy;
2222
use Mockery;
23+
use Orchestra\Testbench\Attributes\WithMigration;
2324
use RuntimeException;
2425
use Tests\Dummies\DummyModel;
2526

27+
#[WithMigration]
2628
class HasConfigTest extends BaseTestCase
2729
{
2830
use RefreshDatabase;

0 commit comments

Comments
 (0)