Skip to content

Commit 7b9886f

Browse files
committed
Adds relationship to PostFactory fixture
1 parent 4070965 commit 7b9886f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fixtures/factories/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$factory->define(Post::class, function (Faker $faker) {
99
return [
1010
'title' => $faker->sentence(4),
11-
'author_id' => $faker->randomDigitNotNull,
11+
'author_id' => factory(\App\Author::class),
1212
'content' => $faker->paragraphs(3, true),
1313
'published_at' => $faker->dateTime(),
1414
'word_count' => $faker->randomNumber(),

0 commit comments

Comments
 (0)