fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -9,7 +9,7 @@ class SchoolCalendarContextServiceTest extends TestCase
{
public function test_event_types_returns_list(): void
{
$service = new SchoolCalendarContextService;
$service = new SchoolCalendarContextService();
$types = $service->eventTypes();
$this->assertNotEmpty($types);
@@ -9,7 +9,7 @@ class SchoolCalendarFormatterServiceTest extends TestCase
{
public function test_format_event_sets_background_for_no_school(): void
{
$service = new SchoolCalendarFormatterService;
$service = new SchoolCalendarFormatterService();
$formatted = $service->formatEvent([
'id' => 1,
'title' => 'No School Day',
@@ -27,7 +27,7 @@ class SchoolCalendarFormatterServiceTest extends TestCase
public function test_format_event_normalizes_iso_dates_to_plain_calendar_date(): void
{
$service = new SchoolCalendarFormatterService;
$service = new SchoolCalendarFormatterService();
$formatted = $service->formatEvent([
'id' => 2,
'title' => 'First Day of School',
@@ -48,7 +48,7 @@ class SchoolCalendarMeetingServiceTest extends TestCase
],
]);
$service = new SchoolCalendarMeetingService;
$service = new SchoolCalendarMeetingService();
$rows = $service->listMeetings('2025-2026', 'parent', 10);
$this->assertCount(1, $rows);
@@ -16,7 +16,7 @@ class SchoolCalendarMutationServiceTest extends TestCase
public function test_create_persists_event(): void
{
$context = new SchoolCalendarContextService;
$context = new SchoolCalendarContextService();
$notifier = Mockery::mock(SchoolCalendarNotificationService::class);
$notifier->shouldReceive('notify')->andReturn([]);
@@ -47,7 +47,7 @@ class SchoolCalendarMutationServiceTest extends TestCase
'notification_sent' => 0,
]);
$context = new SchoolCalendarContextService;
$context = new SchoolCalendarContextService();
$notifier = Mockery::mock(SchoolCalendarNotificationService::class);
$notifier->shouldReceive('notify')->andReturn([]);
@@ -44,7 +44,7 @@ class SchoolCalendarQueryServiceTest extends TestCase
],
]);
$service = new SchoolCalendarQueryService;
$service = new SchoolCalendarQueryService();
$events = $service->listEvents(['school_year' => '2025-2026']);
$this->assertCount(1, $events);
@@ -84,7 +84,7 @@ class SchoolCalendarQueryServiceTest extends TestCase
],
]);
$service = new SchoolCalendarQueryService;
$service = new SchoolCalendarQueryService();
$events = $service->listEvents(['school_year' => '2025-2026']);
$filtered = $service->filterEventsForAudience($events, 'parent');