Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab63635

Browse files
committed
test(dav): imip service test expects integers for last occurence
Signed-off-by: Anna Larch <[email protected]>
1 parent ca474ef commit ab63635

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function testParsingSingle(): void {
193193
$this->plugin->setVCalendar($oldVCalendar);
194194
$this->service->expects(self::once())
195195
->method('getLastOccurrence')
196-
->willReturn('1496912700');
196+
->willReturn(1496912700);
197197
$this->mailer->expects(self::once())
198198
->method('validateMailAddress')
199199
@@ -232,7 +232,7 @@ public function testParsingSingle(): void {
232232
->willReturn('yes');
233233
$this->service->expects(self::once())
234234
->method('createInvitationToken')
235-
->with($message, $newVevent, '1496912700')
235+
->with($message, $newVevent, 1496912700)
236236
->willReturn('token');
237237
$this->service->expects(self::once())
238238
->method('addResponseButtons')
@@ -289,7 +289,7 @@ public function testAttendeeIsResource(): void {
289289
$this->plugin->setVCalendar($oldVCalendar);
290290
$this->service->expects(self::once())
291291
->method('getLastOccurrence')
292-
->willReturn('1496912700');
292+
->willReturn(1496912700);
293293
$this->mailer->expects(self::once())
294294
->method('validateMailAddress')
295295
@@ -384,7 +384,7 @@ public function testParsingRecurrence(): void {
384384
$this->plugin->setVCalendar($oldVCalendar);
385385
$this->service->expects(self::once())
386386
->method('getLastOccurrence')
387-
->willReturn('1496912700');
387+
->willReturn(1496912700);
388388
$this->mailer->expects(self::once())
389389
->method('validateMailAddress')
390390
@@ -424,7 +424,7 @@ public function testParsingRecurrence(): void {
424424
->willReturn('yes');
425425
$this->service->expects(self::once())
426426
->method('createInvitationToken')
427-
->with($message, $newVevent, '1496912700')
427+
->with($message, $newVevent, 1496912700)
428428
->willReturn('token');
429429
$this->service->expects(self::once())
430430
->method('addResponseButtons')
@@ -457,7 +457,7 @@ public function testEmailValidationFailed() {
457457

458458
$this->service->expects(self::once())
459459
->method('getLastOccurrence')
460-
->willReturn('1496912700');
460+
->willReturn(1496912700);
461461
$this->mailer->expects(self::once())
462462
->method('validateMailAddress')
463463
@@ -509,7 +509,7 @@ public function testFailedDelivery(): void {
509509
$this->plugin->setVCalendar($oldVcalendar);
510510
$this->service->expects(self::once())
511511
->method('getLastOccurrence')
512-
->willReturn('1496912700');
512+
->willReturn(1496912700);
513513
$this->mailer->expects(self::once())
514514
->method('validateMailAddress')
515515
@@ -548,7 +548,7 @@ public function testFailedDelivery(): void {
548548
->willReturn('yes');
549549
$this->service->expects(self::once())
550550
->method('createInvitationToken')
551-
->with($message, $newVevent, '1496912700')
551+
->with($message, $newVevent, 1496912700)
552552
->willReturn('token');
553553
$this->service->expects(self::once())
554554
->method('addResponseButtons')
@@ -597,7 +597,7 @@ public function testNoOldEvent(): void {
597597
}
598598
$this->service->expects(self::once())
599599
->method('getLastOccurrence')
600-
->willReturn('1496912700');
600+
->willReturn(1496912700);
601601
$this->mailer->expects(self::once())
602602
->method('validateMailAddress')
603603
@@ -637,7 +637,7 @@ public function testNoOldEvent(): void {
637637
->willReturn('yes');
638638
$this->service->expects(self::once())
639639
->method('createInvitationToken')
640-
->with($message, $newVevent, '1496912700')
640+
->with($message, $newVevent, 1496912700)
641641
->willReturn('token');
642642
$this->service->expects(self::once())
643643
->method('addResponseButtons')
@@ -683,7 +683,7 @@ public function testNoButtons(): void {
683683
}
684684
$this->service->expects(self::once())
685685
->method('getLastOccurrence')
686-
->willReturn('1496912700');
686+
->willReturn(1496912700);
687687
$this->mailer->expects(self::once())
688688
->method('validateMailAddress')
689689

0 commit comments

Comments
 (0)