Skip to content

Commit bdb2fdb

Browse files
authored
Merge pull request #48043 from nextcloud/fix/imip-test-expects-integer
test(dav): imip service test expects integers for last occurence
2 parents 6892500 + d5177c8 commit bdb2fdb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function testParsingSingle(): void {
202202
$this->plugin->setVCalendar($oldVCalendar);
203203
$this->service->expects(self::once())
204204
->method('getLastOccurrence')
205-
->willReturn('1496912700');
205+
->willReturn(1496912700);
206206
$this->mailer->expects(self::once())
207207
->method('validateMailAddress')
208208
->with('frodo@hobb.it')
@@ -248,7 +248,7 @@ public function testParsingSingle(): void {
248248
->willReturn('yes');
249249
$this->service->expects(self::once())
250250
->method('createInvitationToken')
251-
->with($message, $newVevent, '1496912700')
251+
->with($message, $newVevent, 1496912700)
252252
->willReturn('token');
253253
$this->service->expects(self::once())
254254
->method('addResponseButtons')
@@ -305,7 +305,7 @@ public function testAttendeeIsResource(): void {
305305
$this->plugin->setVCalendar($oldVCalendar);
306306
$this->service->expects(self::once())
307307
->method('getLastOccurrence')
308-
->willReturn('1496912700');
308+
->willReturn(1496912700);
309309
$this->mailer->expects(self::once())
310310
->method('validateMailAddress')
311311
->with('the-shire@hobb.it')
@@ -406,7 +406,7 @@ public function testParsingRecurrence(): void {
406406
$this->plugin->setVCalendar($oldVCalendar);
407407
$this->service->expects(self::once())
408408
->method('getLastOccurrence')
409-
->willReturn('1496912700');
409+
->willReturn(1496912700);
410410
$this->mailer->expects(self::once())
411411
->method('validateMailAddress')
412412
->with('frodo@hobb.it')
@@ -452,7 +452,7 @@ public function testParsingRecurrence(): void {
452452
->willReturn('yes');
453453
$this->service->expects(self::once())
454454
->method('createInvitationToken')
455-
->with($message, $newVevent, '1496912700')
455+
->with($message, $newVevent, 1496912700)
456456
->willReturn('token');
457457
$this->service->expects(self::once())
458458
->method('addResponseButtons')
@@ -485,7 +485,7 @@ public function testEmailValidationFailed() {
485485

486486
$this->service->expects(self::once())
487487
->method('getLastOccurrence')
488-
->willReturn('1496912700');
488+
->willReturn(1496912700);
489489
$this->mailer->expects(self::once())
490490
->method('validateMailAddress')
491491
->with('frodo@hobb.it')
@@ -537,7 +537,7 @@ public function testFailedDelivery(): void {
537537
$this->plugin->setVCalendar($oldVcalendar);
538538
$this->service->expects(self::once())
539539
->method('getLastOccurrence')
540-
->willReturn('1496912700');
540+
->willReturn(1496912700);
541541
$this->mailer->expects(self::once())
542542
->method('validateMailAddress')
543543
->with('frodo@hobb.it')
@@ -583,7 +583,7 @@ public function testFailedDelivery(): void {
583583
->willReturn('yes');
584584
$this->service->expects(self::once())
585585
->method('createInvitationToken')
586-
->with($message, $newVevent, '1496912700')
586+
->with($message, $newVevent, 1496912700)
587587
->willReturn('token');
588588
$this->service->expects(self::once())
589589
->method('addResponseButtons')
@@ -650,7 +650,7 @@ public function testMailProviderSend(): void {
650650
// construct service mock returns
651651
$this->service->expects(self::once())
652652
->method('getLastOccurrence')
653-
->willReturn('1496912700');
653+
->willReturn(1496912700);
654654
$this->service->expects(self::once())
655655
->method('getCurrentAttendee')
656656
->with($message)
@@ -676,7 +676,7 @@ public function testMailProviderSend(): void {
676676
->willReturn(true);
677677
$this->service->expects(self::once())
678678
->method('createInvitationToken')
679-
->with($message, $event, '1496912700')
679+
->with($message, $event, 1496912700)
680680
->willReturn('token');
681681
$this->service->expects(self::once())
682682
->method('addResponseButtons')
@@ -703,7 +703,7 @@ public function testMailProviderSend(): void {
703703
->method('findServiceByAddress')
704704
->with('user1', 'gandalf@wiz.ard')
705705
->willReturn($this->mailService);
706-
706+
707707
$this->plugin->schedule($message);
708708
$this->assertEquals('1.1', $message->getScheduleStatus());
709709
}
@@ -737,7 +737,7 @@ public function testNoOldEvent(): void {
737737
}
738738
$this->service->expects(self::once())
739739
->method('getLastOccurrence')
740-
->willReturn('1496912700');
740+
->willReturn(1496912700);
741741
$this->mailer->expects(self::once())
742742
->method('validateMailAddress')
743743
->with('frodo@hobb.it')
@@ -784,7 +784,7 @@ public function testNoOldEvent(): void {
784784
->willReturn('yes');
785785
$this->service->expects(self::once())
786786
->method('createInvitationToken')
787-
->with($message, $newVevent, '1496912700')
787+
->with($message, $newVevent, 1496912700)
788788
->willReturn('token');
789789
$this->service->expects(self::once())
790790
->method('addResponseButtons')
@@ -830,7 +830,7 @@ public function testNoButtons(): void {
830830
}
831831
$this->service->expects(self::once())
832832
->method('getLastOccurrence')
833-
->willReturn('1496912700');
833+
->willReturn(1496912700);
834834
$this->mailer->expects(self::once())
835835
->method('validateMailAddress')
836836
->with('frodo@hobb.it')

0 commit comments

Comments
 (0)