Skip to content

Commit f4b6d60

Browse files
committed
wip
1 parent b2b6aa6 commit f4b6d60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/Integration/Database/RefreshModelTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Tests\Tempest\Fixtures\Migrations\CreateAuthorTable;
77
use Tests\Tempest\Fixtures\Migrations\CreateBookTable;
88
use Tests\Tempest\Fixtures\Migrations\CreateChapterTable;
9+
use Tests\Tempest\Fixtures\Migrations\CreatePublishersTable;
910
use Tests\Tempest\Fixtures\Modules\Books\Models\Author;
1011
use Tests\Tempest\Fixtures\Modules\Books\Models\Book;
1112
use Tests\Tempest\Integration\FrameworkIntegrationTestCase;
@@ -18,8 +19,9 @@ public function test_refresh_works_for_models_with_unloaded_relation(): void
1819
{
1920
$this->migrate(
2021
CreateMigrationsTable::class,
21-
CreateBookTable::class,
22+
CreatePublishersTable::class,
2223
CreateAuthorTable::class,
24+
CreateBookTable::class,
2325
CreateChapterTable::class,
2426
);
2527

@@ -65,8 +67,10 @@ public function test_load_method_only_refreshes_relations_and_nothing_else(): vo
6567
{
6668
$this->migrate(
6769
CreateMigrationsTable::class,
68-
CreateBookTable::class,
70+
CreatePublishersTable::class,
6971
CreateAuthorTable::class,
72+
CreateBookTable::class,
73+
CreateChapterTable::class,
7074
);
7175

7276
$author = Author::create(

0 commit comments

Comments
 (0)