Skip to content

Commit

Permalink
fixup! feat(user status): automate user status for events
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Nov 8, 2023
1 parent 67467e8 commit 18ac6b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/dav/lib/CalDAV/Status/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public function processCalendarAvailability(User $user, ?string $availability):
continue;
}

/** @var Component\VTimeZone|null $ctz */
$ctz = $calendarObject->getSchedulingTimezone();
if ($ctz !== null) {
$calendarTimeZone = $ctz->getTimeZone();
Expand Down
4 changes: 2 additions & 2 deletions apps/dav/tests/unit/CalDAV/Status/StatusServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public function testEmptyAvailabilityAndSearchCalendarsNoResults(): void {
->willReturn([$calendar]);
$this->timeFactory->expects(self::once())
->method('getDateTime')
->with('+1 hour')
->with('+5 minutes')
->willReturn($inAnHour);
$query->expects(self::once())
->method('setTimerangeStart')
Expand Down Expand Up @@ -685,7 +685,7 @@ public function testAvailabilityAndSearchCalendarsNoResults(): void {
->willReturn([$calendar]);
$this->timeFactory->expects(self::once())
->method('getDateTime')
->with('+1 hour')
->with('+5 minutes')
->willReturn($inAnHour);
$query->expects(self::once())
->method('setTimerangeStart')
Expand Down

0 comments on commit 18ac6b6

Please sign in to comment.