add school calendar logic
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Services\Settings\SchoolCalendar;
|
||||
|
||||
use App\Services\EmailService;
|
||||
use App\Services\Settings\SchoolCalendar\SchoolCalendarNotificationService;
|
||||
use Mockery;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SchoolCalendarNotificationServiceTest extends TestCase
|
||||
{
|
||||
public function test_notify_returns_empty_when_no_targets(): void
|
||||
{
|
||||
$emailService = Mockery::mock(EmailService::class);
|
||||
$service = new SchoolCalendarNotificationService($emailService);
|
||||
|
||||
$result = $service->notify(['title' => 'Event'], []);
|
||||
|
||||
$this->assertSame([], $result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user