add test batches
This commit is contained in:
@@ -14,7 +14,7 @@ class WhatsappInviteNotificationServiceTest extends TestCase
|
||||
|
||||
public function test_dispatch_returns_error_when_no_listeners(): void
|
||||
{
|
||||
$service = new WhatsappInviteNotificationService;
|
||||
$service = new WhatsappInviteNotificationService();
|
||||
$result = $service->dispatch([], '2025-2026', 'Fall');
|
||||
|
||||
$this->assertFalse($result['ok']);
|
||||
@@ -22,9 +22,10 @@ class WhatsappInviteNotificationServiceTest extends TestCase
|
||||
|
||||
public function test_dispatch_triggers_event_when_listener_registered(): void
|
||||
{
|
||||
Event::listen(WhatsappInvitesSend::class, static function () {});
|
||||
Event::listen(WhatsappInvitesSend::class, static function () {
|
||||
});
|
||||
|
||||
$service = new WhatsappInviteNotificationService;
|
||||
$service = new WhatsappInviteNotificationService();
|
||||
$result = $service->dispatch([[
|
||||
'parent' => ['id' => 10],
|
||||
'emails' => ['parent1@example.com'],
|
||||
|
||||
Reference in New Issue
Block a user