mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
- Update tests whose expectations no longer matched intended changes (GitHub App redirect, wildcard domains, container IDs, nightly install folders, localhost metadata, Sentinel restart on save) - Seed the instance settings the 2FA profile test needs - Run the global Pest hooks for all test folders and release the Laravel application after each test, so tests do not leak state - Replace a class alias mock that broke later tests - Generate factory names that always pass name validation; Faker names with apostrophes or short words made form tests fail at random
21 lines
482 B
PHP
21 lines
482 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\StandaloneDocker;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ServiceFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->unique()->words(2, true),
|
|
'destination_type' => StandaloneDocker::class,
|
|
'destination_id' => 1,
|
|
'environment_id' => 1,
|
|
'docker_compose_raw' => 'version: "3"',
|
|
];
|
|
}
|
|
}
|