code style fix

add command tests
This commit is contained in:
Saeed Vaziry
2023-09-02 16:41:42 +02:00
parent 71f9dabc24
commit e1eb42059f
135 changed files with 1859 additions and 135 deletions

View File

@ -21,13 +21,13 @@ public function run(): void
'email' => 'user@example.com',
]);
$server = Server::factory()->create([
'user_id' => $user->id
'user_id' => $user->id,
]);
$server->services()->create([
'type' => 'database',
'name' => config('core.databases_name.mysql80'),
'version' => config('core.databases_version.mysql80'),
'status' => ServiceStatus::READY
'status' => ServiceStatus::READY,
]);
$server->services()->create([
'type' => 'php',
@ -36,17 +36,17 @@ public function run(): void
],
'name' => 'php',
'version' => '8.1',
'status' => ServiceStatus::READY
'status' => ServiceStatus::READY,
]);
$server->services()->create([
'type' => 'webserver',
'name' => 'nginx',
'version' => 'latest',
'status' => ServiceStatus::READY
'status' => ServiceStatus::READY,
]);
Site::factory()->create([
'server_id' => $server->id,
'type' => SiteType::LARAVEL
'type' => SiteType::LARAVEL,
]);
}
}