summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-06-20 09:53:51 -0300
committerVitor Mattos <vitor@php.rio>2022-06-20 09:53:51 -0300
commitd7e7a4d333cbf5f3551555df3e6b9a79a21442fd (patch)
tree9adc387db3c640a9522381fe18b3ecf081b146d5 /apps
parentc59b0c2ff7701916fbab4c5d544f43a49acabc34 (diff)
downloadnextcloud-server-d7e7a4d333cbf5f3551555df3e6b9a79a21442fd.tar.gz
nextcloud-server-d7e7a4d333cbf5f3551555df3e6b9a79a21442fd.zip
Fix test to check the expire date
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/Comments/CommentsNodeTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/Comments/CommentsNodeTest.php b/apps/dav/tests/unit/Comments/CommentsNodeTest.php
index ea3a1952e45..54d410b609a 100644
--- a/apps/dav/tests/unit/Comments/CommentsNodeTest.php
+++ b/apps/dav/tests/unit/Comments/CommentsNodeTest.php
@@ -405,6 +405,7 @@ class CommentsNodeTest extends \Test\TestCase {
$ns . 'referenceId' => 'ref',
$ns . 'isUnread' => null,
$ns . 'reactions' => [],
+ $ns . 'expireDate' => new \DateTime('2016-01-12 19:00:00'),
];
$this->commentsManager->expects($this->exactly(2))
@@ -474,6 +475,10 @@ class CommentsNodeTest extends \Test\TestCase {
->method('getReferenceId')
->willReturn($expected[$ns . 'referenceId']);
+ $this->comment->expects($this->once())
+ ->method('getExpireDate')
+ ->willReturn($expected[$ns . 'expireDate']);
+
$user = $this->getMockBuilder(IUser::class)
->disableOriginalConstructor()
->getMock();