global storage-providers, notification channels and server providers (#247)

This commit is contained in:
Saeed Vaziry
2024-06-29 12:52:03 +03:30
committed by GitHub
parent ad027eb033
commit 11e3b167cc
44 changed files with 678 additions and 77 deletions

View File

@ -21,12 +21,14 @@ public function test_add_email_channel(): void
'provider' => NotificationChannel::EMAIL,
'email' => 'email@example.com',
'label' => 'Email',
'global' => 1,
])->assertSessionDoesntHaveErrors();
/** @var \App\Models\NotificationChannel $channel */
$channel = \App\Models\NotificationChannel::query()
->where('provider', NotificationChannel::EMAIL)
->where('label', 'Email')
->whereNull('project_id')
->first();
$this->assertEquals('email@example.com', $channel->data['email']);