From 29023af7736880dd34d0a5c3d73f36c427678631 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Wed, 20 Nov 2024 14:51:58 +0100 Subject: [PATCH] tests: faker: property access is deprecated, we need to call the methods instead --- tests/Support/database/factories/CommentFactory.php | 4 ++-- tests/Support/database/factories/PostFactory.php | 4 ++-- tests/Support/database/factories/UserFactory.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Support/database/factories/CommentFactory.php b/tests/Support/database/factories/CommentFactory.php index bb2a336f..064cc6ec 100644 --- a/tests/Support/database/factories/CommentFactory.php +++ b/tests/Support/database/factories/CommentFactory.php @@ -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(), ]; } } diff --git a/tests/Support/database/factories/PostFactory.php b/tests/Support/database/factories/PostFactory.php index 4683c1e9..32881304 100644 --- a/tests/Support/database/factories/PostFactory.php +++ b/tests/Support/database/factories/PostFactory.php @@ -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(), ]; } } diff --git a/tests/Support/database/factories/UserFactory.php b/tests/Support/database/factories/UserFactory.php index a2392ed4..8eee3664 100644 --- a/tests/Support/database/factories/UserFactory.php +++ b/tests/Support/database/factories/UserFactory.php @@ -16,7 +16,7 @@ class UserFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, + 'name' => fake()->name(), ]; } }