Fix test to check the expire date

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-06-20 09:53:51 -03:00
parent c59b0c2ff7
commit d7e7a4d333
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318

View file

@ -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();