Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions tests/lib/Calendar/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function testHandleImipReplyWrongMethod(): void {
$this->logger->expects(self::once())
->method('warning');
$this->time->expects(self::never())
->method('getTimestamp');
->method('getTime');

$result = $this->manager->handleIMipReply($principalUri, $sender, $recipient, $calendarData->serialize());
$this->assertFalse($result);
Expand All @@ -266,7 +266,7 @@ public function testHandleImipReplyOrganizerNotRecipient(): void {
$this->logger->expects(self::once())
->method('warning');
$this->time->expects(self::never())
->method('getTimestamp');
->method('getTime');

$result = $this->manager->handleIMipReply($principalUri, $sender, $recipient, $calendarData->serialize());
$this->assertFalse($result);
Expand All @@ -280,7 +280,7 @@ public function testHandleImipReplyDateInThePast(): void {
$calendarData->VEVENT->DTSTART = new \DateTime('2013-04-07'); // set to in the past

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(time());

$this->logger->expects(self::once())
Expand Down Expand Up @@ -308,7 +308,7 @@ public function testHandleImipReplyNoCalendars(): void {
$calendarData = $this->getVCalendarReply();

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(202208219);
$manager->expects(self::once())
->method('getCalendarsForPrincipal')
Expand Down Expand Up @@ -339,7 +339,7 @@ public function testHandleImipReplyEventNotFound(): void {
$calendarData = $this->getVCalendarReply();

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(202208219);
$manager->expects(self::once())
->method('getCalendarsForPrincipal')
Expand Down Expand Up @@ -375,7 +375,7 @@ public function testHandleImipReply(): void {
$calendarData = $this->getVCalendarReply();

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(202208219);
$manager->expects(self::once())
->method('getCalendarsForPrincipal')
Expand All @@ -402,7 +402,7 @@ public function testHandleImipCancelWrongMethod(): void {
$this->logger->expects(self::once())
->method('warning');
$this->time->expects(self::never())
->method('getTimestamp');
->method('getTime');

$result = $this->manager->handleIMipCancel($principalUri, $sender, $replyTo, $recipient, $calendarData->serialize());
$this->assertFalse($result);
Expand All @@ -419,7 +419,7 @@ public function testHandleImipCancelAttendeeNotRecipient(): void {
$this->logger->expects(self::once())
->method('warning');
$this->time->expects(self::never())
->method('getTimestamp');
->method('getTime');

$result = $this->manager->handleIMipCancel($principalUri, $sender, $replyTo, $recipient, $calendarData->serialize());
$this->assertFalse($result);
Expand All @@ -434,7 +434,7 @@ public function testHandleImipCancelDateInThePast(): void {
$calendarData->VEVENT->DTSTART = new \DateTime('2013-04-07'); // set to in the past

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(time());
$this->logger->expects(self::once())
->method('warning');
Expand Down Expand Up @@ -462,7 +462,7 @@ public function testHandleImipCancelNoCalendars(): void {
$calendarData = $this->getVCalendarCancel();

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(202208219);
$manager->expects(self::once())
->method('getCalendarsForPrincipal')
Expand Down Expand Up @@ -496,7 +496,7 @@ public function testHandleImipCancelOrganiserInReplyTo(): void {
$calendarData->VEVENT->METHOD = 'CANCEL';

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(202208219);
$manager->expects(self::once())
->method('getCalendarsForPrincipal')
Expand Down Expand Up @@ -533,7 +533,7 @@ public function testHandleImipCancel(): void {
$calendarData->VEVENT->METHOD = 'CANCEL';

$this->time->expects(self::once())
->method('getTimestamp')
->method('getTime')
->willReturn(202208219);
$manager->expects(self::once())
->method('getCalendarsForPrincipal')
Expand Down