4.1-4.3: add PHPUnit feature tests for all endpoints + factories
This commit is contained in:
1 parent
afb202f333
commit
9ff5b93157
16 files changed
+504
-37
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories\Website;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ProjectFactory extends Factory
|
||||
{
|
||||
protected $model = \App\Models\Website\Project::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'category_id' => \App\Models\Website\ProjectCategory::factory(),
|
||||
'image1' => $this->faker->imageUrl(),
|
||||
'image2' => $this->faker->imageUrl(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user