added tests for blogPost

This commit is contained in:
2024-01-10 13:41:43 +03:00
parent d96954f4b4
commit 93ca684f67
22 changed files with 548 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\BlogPostComment>
*/
class BlogPostCommentFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'grade' => $this->faker->randomDigit(),
'body' => $this->faker->text(),
];
}
}