diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-10-26 12:50:08 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-11-09 16:37:34 +0100 |
commit | 2a684f674164640d917a4fd1b3631b6ed3b36eb3 (patch) | |
tree | f9fef72a84099bc0868d205b0e9453c13896eef1 /apps/dav/tests/unit | |
parent | dce83459d581b2517d7078d98c58d06babb1ceba (diff) | |
download | nextcloud-server-2a684f674164640d917a4fd1b3631b6ed3b36eb3.tar.gz nextcloud-server-2a684f674164640d917a4fd1b3631b6ed3b36eb3.zip |
Fix some phpunit test warnings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav/tests/unit')
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php b/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php index fd27b4d2776..295949bdc91 100644 --- a/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php +++ b/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php @@ -82,7 +82,7 @@ class CleanupInvitationTokenJobTest extends TestCase { $expr->expects($this->once()) ->method('lt') ->with('expiration', 'namedParameter1337') - ->willReturn($function); + ->willReturn((string)$function); $this->dbConnection->expects($this->once()) ->method('getQueryBuilder') diff --git a/apps/dav/tests/unit/CalDAV/CalendarImplTest.php b/apps/dav/tests/unit/CalDAV/CalendarImplTest.php index 6842bdadb53..56aef20ca74 100644 --- a/apps/dav/tests/unit/CalDAV/CalendarImplTest.php +++ b/apps/dav/tests/unit/CalDAV/CalendarImplTest.php @@ -152,7 +152,7 @@ ORGANIZER:mailto:pierre@generalstore.com UID:aUniqueUid SEQUENCE:2 REQUEST-STATUS:2.0;Success -%sEND:VEVENT +END:VEVENT END:VCALENDAR EOF; @@ -190,7 +190,7 @@ ORGANIZER:mailto:pierre@generalstore.com UID:aUniqueUid SEQUENCE:2 REQUEST-STATUS:2.0;Success -%sEND:VEVENT +END:VEVENT END:VCALENDAR EOF; diff --git a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php index 576fde2d4af..3e6886964c9 100644 --- a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php +++ b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php @@ -482,7 +482,7 @@ EOF; $expr->expects($this->once()) ->method('eq') ->with('token', 'namedParameterToken') - ->willReturn($function); + ->willReturn((string)$function); $this->dbConnection->expects($this->once()) ->method('getQueryBuilder') |