Skip to content

Commit

Permalink
tests: faker: property access is deprecated, we need to call the meth…
Browse files Browse the repository at this point in the history
…ods instead
  • Loading branch information
mfn committed Nov 20, 2024
1 parent 63d4cda commit 29023af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/Support/database/factories/CommentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class CommentFactory extends Factory
public function definition(): array
{
return [
'title' => fake()->title,
'body' => fake()->sentence,
'title' => fake()->title(),
'body' => fake()->sentence(),
];
}
}
4 changes: 2 additions & 2 deletions tests/Support/database/factories/PostFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class PostFactory extends Factory
public function definition(): array
{
return [
'title' => fake()->title,
'body' => fake()->sentence,
'title' => fake()->title(),
'body' => fake()->sentence(),
];
}
}
2 changes: 1 addition & 1 deletion tests/Support/database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'name' => fake()->name(),
];
}
}

0 comments on commit 29023af

Please sign in to comment.