mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 04:23:34 +00:00
Dispatch edit-domain-saved so Alpine closes the domain edit modal, wire Save to updateDomain, and force white active log toolbar text in dark mode. Seed railpack examples on the local Docker destination only and remove Lima servers, environments, and V5DevLimaSeeder.
27 lines
697 B
PHP
27 lines
697 B
PHP
<?php
|
|
|
|
use App\Models\Server;
|
|
use Database\Seeders\PrivateKeySeeder;
|
|
use Database\Seeders\ServerSeeder;
|
|
use Database\Seeders\TeamSeeder;
|
|
use Database\Seeders\UserSeeder;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
uses(RefreshDatabase::class);
|
|
|
|
it('seeds only the development testing host', function () {
|
|
$this->seed([
|
|
UserSeeder::class,
|
|
TeamSeeder::class,
|
|
PrivateKeySeeder::class,
|
|
ServerSeeder::class,
|
|
]);
|
|
|
|
$testingHost = Server::query()->where('uuid', 'localhost')->first();
|
|
|
|
expect($testingHost)
|
|
->not->toBeNull()
|
|
->and($testingHost->ip)->toBe('coolify-testing-host')
|
|
->and(Server::query()->count())->toBe(1);
|
|
});
|