From adea40f884fca4d780e4aefcd29073a4b5eb9407 Mon Sep 17 00:00:00 2001 From: Moslem Deris Date: Mon, 28 Oct 2024 13:25:54 +0330 Subject: [PATCH] refactor deprecated `$this->faker` to laravel `fake()` method --- tests/Infrastructure/Doubles/BookFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Infrastructure/Doubles/BookFactory.php b/tests/Infrastructure/Doubles/BookFactory.php index d7eb781b..83106e4a 100644 --- a/tests/Infrastructure/Doubles/BookFactory.php +++ b/tests/Infrastructure/Doubles/BookFactory.php @@ -19,7 +19,7 @@ class BookFactory extends CoreFactory public function definition(): array { return [ - 'title' => $this->faker->sentence, + 'title' => fake()->sentence, 'author_id' => UserFactory::new(), ]; }