feat: include testing, factories, git workflow for testing.
All checks were successful
Tests / Laravel tests (pull_request) Successful in 3m31s

This commit is contained in:
2026-06-03 21:23:39 +02:00
parent d83fce834a
commit 9df6c0ab46
20 changed files with 732 additions and 13 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Skill>
*/
class SkillFactory extends Factory
{
public function definition(): array
{
return [
'title' => fake()->randomElement(['Laravel', 'PHP', 'Docker', 'Tailwind CSS']),
'description' => fake()->sentence(),
'rating' => fake()->numberBetween(1, 10),
'type' => fake()->randomElement(['rating', 'tag', 'other']),
];
}
public function rating(): static
{
return $this->state(fn (array $attributes) => [
'type' => 'rating',
'rating' => fake()->numberBetween(1, 10),
]);
}
}