add controllers, servoices

This commit is contained in:
root
2026-03-09 02:52:13 -04:00
parent c8de5f7edc
commit d76c871cb7
501 changed files with 34439 additions and 21843 deletions
@@ -0,0 +1,23 @@
<?php
namespace Tests\Unit\Services\BroadcastEmail;
use App\Services\BroadcastEmail\BroadcastEmailSenderOptionsService;
use Tests\TestCase;
class BroadcastEmailSenderOptionsServiceTest extends TestCase
{
public function test_list_options_from_env(): void
{
$old = getenv('MAIL_SENDERS') ?: '';
putenv('MAIL_SENDERS={"general":{"name":"Office","email":"office@example.com"}}');
$service = new BroadcastEmailSenderOptionsService();
$options = $service->listOptions();
$this->assertSame('general', $options[0]['key']);
$this->assertSame('Office <office@example.com>', $options[0]['label']);
putenv('MAIL_SENDERS=' . $old);
}
}