mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix test to check the expire date
Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
parent
c59b0c2ff7
commit
d7e7a4d333
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue