diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-24 10:28:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 10:28:13 +0200 |
commit | 4722baf970ba514f9495257092f9e200fa7c54e3 (patch) | |
tree | 3e91258c679071c7f0dc62c491b9abbbd4b99f62 /apps/dav/tests | |
parent | e0c6c1582dbea507fe003c63e61ac33b0bdfe3ae (diff) | |
parent | 3be1217c046eca725b14348b73d36c7b8d625d44 (diff) | |
download | nextcloud-server-4722baf970ba514f9495257092f9e200fa7c54e3.tar.gz nextcloud-server-4722baf970ba514f9495257092f9e200fa7c54e3.zip |
Merge pull request #32863 from nextcloud/feature/add-comments-expire-date
Add comments expire date
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/Comments/CommentsNodeTest.php | 5 |
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(); |