Only Breeze's default auth/profile tests existed - nothing covered Workouts, Sessions, Exercises, Yoga, Favorites, Blog, or the Admin panel, which is the actual product. Adds factories for the domain models and 45 new feature tests covering the main flows plus authorization boundaries (owner-only access on workouts/sessions, admin-only access on /admin, drafts hidden from the public blog). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
21 lines
500 B
PHP
21 lines
500 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\YogaCategory>
|
|
*/
|
|
class YogaCategoryFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'external_id' => fake()->unique()->numberBetween(1, 999999),
|
|
'name' => ucfirst(fake()->unique()->word()) . ' Yoga',
|
|
'description' => fake()->sentence(),
|
|
];
|
|
}
|
|
}
|