We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lowest
1 parent 6085acc commit 75fa8d0Copy full SHA for 75fa8d0
tests/Asserts/DatabaseAssertsTest.php
@@ -22,11 +22,9 @@ public function it_has_database_missing_table_assertion()
22
/** @test */
23
public function it_has_database_has_many_assertion()
24
{
25
- Post::factory()->createMany([
26
- ['title' => 'First Post'],
27
- ['title' => 'Second Post'],
28
- ['title' => 'Third Post'],
29
- ]);
+ Post::factory()->create(['title' => 'First Post']);
+ Post::factory()->create(['title' => 'Second Post']);
+ Post::factory()->create(['title' => 'Third Post']);
30
31
$this->assertDatabaseHasMany('posts', [
32
['title' => 'First Post'],
0 commit comments