Files
alrahma_sunday_school_api/tests/Unit/Services/Notifications/NotificationDispatchServiceTest.php
T
2026-06-09 01:25:14 -04:00

22 lines
551 B
PHP

<?php
namespace Tests\Unit\Services\Notifications;
use App\Services\Notifications\NotificationDispatchService;
use Illuminate\Support\Facades\Log;
use Tests\TestCase;
class NotificationDispatchServiceTest extends TestCase
{
public function test_dispatch_logs_email_and_sms(): void
{
Log::spy();
$service = new NotificationDispatchService;
$service->sendEmail('parent@example.com', 'Subject', 'Message');
$service->sendSms('5551112222', 'Message');
Log::shouldHaveReceived('info')->twice();
}
}