Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -62,6 +62,7 @@ public function test_create_worker(): void
$this->post(route('workers.store', [
'server' => $this->server,
]), [
'name' => 'Test Worker',
'command' => 'php artisan worker:work',
'user' => 'vito',
'auto_start' => 1,
@ -72,6 +73,7 @@ public function test_create_worker(): void
$this->assertDatabaseHas('workers', [
'server_id' => $this->server->id,
'name' => 'Test Worker',
'command' => 'php artisan worker:work',
'user' => 'vito',
'auto_start' => 1,
@ -94,6 +96,7 @@ public function test_create_worker_as_isolated_user(): void
'server' => $this->server,
'site' => $this->site,
]), [
'name' => 'Test Worker',
'command' => 'php artisan worker:work',
'user' => 'example',
'auto_start' => 1,
@ -124,6 +127,7 @@ public function test_cannot_create_worker_as_invalid_user(): void
'server' => $this->server,
'site' => $this->site,
]), [
'name' => 'Test Worker',
'command' => 'php artisan worker:work',
'user' => 'example',
'auto_start' => 1,
@ -154,6 +158,7 @@ public function test_cannot_create_worker_on_another_sites_user(): void
'server' => $this->server,
'site' => $this->site,
]), [
'name' => 'Test Worker',
'command' => 'php artisan worker:work',
'user' => 'example',
'auto_start' => 1,