Skip to content

Commit 82e2aa2

Browse files
committed
[Tests] Remove deprecation messages originating from faker
1 parent 1173965 commit 82e2aa2

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

tests/dummy/database/factories/CommentFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CommentFactory extends Factory
4141
public function definition()
4242
{
4343
return [
44-
'content' => $this->faker->text,
44+
'content' => $this->faker->text(),
4545
'post_id' => Post::factory(),
4646
'user_id' => User::factory(),
4747
];

tests/dummy/database/factories/ImageFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ImageFactory extends Factory
3939
public function definition()
4040
{
4141
return [
42-
'url' => $this->faker->url,
42+
'url' => $this->faker->url(),
4343
];
4444
}
4545
}

tests/dummy/database/factories/PostFactory.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public function definition()
4141
{
4242
return [
4343
'author_id' => User::factory(),
44-
'content' => $this->faker->text,
45-
'published_at' => $this->faker->dateTimeThisMonth,
46-
'slug' => $this->faker->unique()->slug,
47-
'synopsis' => $this->faker->sentence,
44+
'content' => $this->faker->text(),
45+
'published_at' => $this->faker->dateTimeThisMonth(),
46+
'slug' => $this->faker->unique()->slug(),
47+
'synopsis' => $this->faker->sentence(),
4848
'title' => $this->faker->words(3, true),
4949
];
5050
}

tests/dummy/database/factories/TagFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TagFactory extends Factory
3939
public function definition()
4040
{
4141
return [
42-
'name' => $this->faker->colorName,
42+
'name' => $this->faker->colorName(),
4343
];
4444
}
4545
}

tests/dummy/database/factories/UserFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class UserFactory extends Factory
4040
public function definition()
4141
{
4242
return [
43-
'name' => $this->faker->name,
44-
'email' => $this->faker->unique()->safeEmail,
43+
'name' => $this->faker->name(),
44+
'email' => $this->faker->unique()->safeEmail(),
4545
'email_verified_at' => now(),
4646
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
4747
'remember_token' => Str::random(10),

tests/dummy/database/factories/VideoFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function definition()
4242
return [
4343
'owner_id' => User::factory(),
4444
'title' => $this->faker->words(3, true),
45-
'url' => $this->faker->url,
45+
'url' => $this->faker->url(),
4646
];
4747
}
4848
}

0 commit comments

Comments
 (0)