Skip to content

Commit

Permalink
test(dav): imip service test expects integers for last occurence
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <[email protected]>
  • Loading branch information
miaulalala authored and backportbot[bot] committed Sep 15, 2024
1 parent 3ab5bdc commit ce75384
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function testParsingSingle(): void {
$this->plugin->setVCalendar($oldVCalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down Expand Up @@ -248,7 +248,7 @@ public function testParsingSingle(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -305,7 +305,7 @@ public function testAttendeeIsResource(): void {
$this->plugin->setVCalendar($oldVCalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down Expand Up @@ -406,7 +406,7 @@ public function testParsingRecurrence(): void {
$this->plugin->setVCalendar($oldVCalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down Expand Up @@ -452,7 +452,7 @@ public function testParsingRecurrence(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -485,7 +485,7 @@ public function testEmailValidationFailed() {

$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down Expand Up @@ -537,7 +537,7 @@ public function testFailedDelivery(): void {
$this->plugin->setVCalendar($oldVcalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down Expand Up @@ -583,7 +583,7 @@ public function testFailedDelivery(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -650,7 +650,7 @@ public function testMailProviderSend(): void {
// construct service mock returns
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->service->expects(self::once())
->method('getCurrentAttendee')
->with($message)
Expand All @@ -676,7 +676,7 @@ public function testMailProviderSend(): void {
->willReturn(true);
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $event, '1496912700')
->with($message, $event, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand All @@ -703,7 +703,7 @@ public function testMailProviderSend(): void {
->method('findServiceByAddress')
->with('user1', '[email protected]')
->willReturn($this->mailService);

$this->plugin->schedule($message);
$this->assertEquals('1.1', $message->getScheduleStatus());
}
Expand Down Expand Up @@ -737,7 +737,7 @@ public function testNoOldEvent(): void {
}
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down Expand Up @@ -784,7 +784,7 @@ public function testNoOldEvent(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -830,7 +830,7 @@ public function testNoButtons(): void {
}
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('[email protected]')
Expand Down

0 comments on commit ce75384

Please sign in to comment.