File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/Integration/Database Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ public function test_database_seed_on_selected_database(): void
306306
307307 $ this ->assertSame (
308308 'Timeline Taxi ' ,
309- query (Book::class)->select ()->onDatabase ('main ' )->first ()->title ,
309+ query (Book::class)->select ()->onDatabase ('main ' )->where ( ' title ' , ' Timeline Taxi ' )-> first ()->title ,
310310 );
311311
312312 $ this ->assertNull (
@@ -319,7 +319,7 @@ public function test_database_seed_on_selected_database(): void
319319
320320 /** @var Book $book */
321321 /** @phpstan-ignore-next-line */
322- $ book = query (Book::class)->select ()->onDatabase ('backup ' )->first ();
322+ $ book = query (Book::class)->select ()->onDatabase ('backup ' )->where ( ' title ' , ' Timeline Taxi ' )-> first ();
323323
324324 $ this ->assertSame (
325325 'Timeline Taxi ' ,
@@ -335,7 +335,7 @@ public function test_migrate_fresh_seed_on_selected_database(): void
335335
336336 $ this ->assertSame (
337337 'Timeline Taxi ' ,
338- query (Book::class)->select ()->onDatabase ('main ' )->first ()->title ,
338+ query (Book::class)->select ()->onDatabase ('main ' )->where ( ' title ' , ' Timeline Taxi ' )-> first ()->title ,
339339 );
340340
341341 $ this ->assertException (QueryWasInvalid::class, function (): void {
@@ -348,7 +348,7 @@ public function test_migrate_fresh_seed_on_selected_database(): void
348348
349349 $ this ->assertSame (
350350 'Timeline Taxi ' ,
351- query (Book::class)->select ()->onDatabase ('backup ' )->first ()->title ,
351+ query (Book::class)->select ()->onDatabase ('backup ' )->where ( ' title ' , ' Timeline Taxi ' )-> first ()->title ,
352352 );
353353 }
354354
You can’t perform that action at this time.
0 commit comments