]> source.dussan.org Git - nextcloud-server.git/commitdiff
test(dav): imip service test expects integers for last occurence backport/48043/stable29 48055/head
authorAnna Larch <anna@nextcloud.com>
Sun, 15 Sep 2024 16:43:45 +0000 (18:43 +0200)
committerBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Wed, 2 Oct 2024 07:22:30 +0000 (09:22 +0200)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php

index 0e459418ae0afb9f30c74c7f9635e37a5390b7cc..3d240808d86db3959453ffe6929be55a44de73fa 100644 (file)
@@ -193,7 +193,7 @@ class IMipPluginTest extends TestCase {
                $this->plugin->setVCalendar($oldVCalendar);
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('frodo@hobb.it')
@@ -232,7 +232,7 @@ class IMipPluginTest extends TestCase {
                        ->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')
@@ -289,7 +289,7 @@ class IMipPluginTest extends TestCase {
                $this->plugin->setVCalendar($oldVCalendar);
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('the-shire@hobb.it')
@@ -384,7 +384,7 @@ class IMipPluginTest extends TestCase {
                $this->plugin->setVCalendar($oldVCalendar);
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('frodo@hobb.it')
@@ -424,7 +424,7 @@ class IMipPluginTest extends TestCase {
                        ->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')
@@ -457,7 +457,7 @@ class IMipPluginTest extends TestCase {
 
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('frodo@hobb.it')
@@ -509,7 +509,7 @@ class IMipPluginTest extends TestCase {
                $this->plugin->setVCalendar($oldVcalendar);
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('frodo@hobb.it')
@@ -548,7 +548,7 @@ class IMipPluginTest extends TestCase {
                        ->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')
@@ -597,7 +597,7 @@ class IMipPluginTest extends TestCase {
                }
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('frodo@hobb.it')
@@ -637,7 +637,7 @@ class IMipPluginTest extends TestCase {
                        ->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')
@@ -683,7 +683,7 @@ class IMipPluginTest extends TestCase {
                }
                $this->service->expects(self::once())
                        ->method('getLastOccurrence')
-                       ->willReturn('1496912700');
+                       ->willReturn(1496912700);
                $this->mailer->expects(self::once())
                        ->method('validateMailAddress')
                        ->with('frodo@hobb.it')