Skip to content

Commit 75fa8d0

Browse files
committed
Fix tests for the lowest stability
1 parent 6085acc commit 75fa8d0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/Asserts/DatabaseAssertsTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ public function it_has_database_missing_table_assertion()
2222
/** @test */
2323
public function it_has_database_has_many_assertion()
2424
{
25-
Post::factory()->createMany([
26-
['title' => 'First Post'],
27-
['title' => 'Second Post'],
28-
['title' => 'Third Post'],
29-
]);
25+
Post::factory()->create(['title' => 'First Post']);
26+
Post::factory()->create(['title' => 'Second Post']);
27+
Post::factory()->create(['title' => 'Third Post']);
3028

3129
$this->assertDatabaseHasMany('posts', [
3230
['title' => 'First Post'],

0 commit comments

Comments
 (0)