aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-29 22:41:37 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-29 22:43:48 +0200
commitd5f39164a1b99804a71c24f844369b8d2db84a9a (patch)
tree8cf65fa2e7492d338ea693b94e25a63e74e6cf9d /tests
parent938b0d5597c899e6f9a1026ae5593d750412c6bf (diff)
downloadnextcloud-server-d5f39164a1b99804a71c24f844369b8d2db84a9a.tar.gz
nextcloud-server-d5f39164a1b99804a71c24f844369b8d2db84a9a.zip
Add test for setTopmostParentId and getTopmostParentId
This wasn't tested before as proven by the coverage data. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Comments/CommentTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Comments/CommentTest.php b/tests/lib/Comments/CommentTest.php
index b55c345f71f..ea10c52ae17 100644
--- a/tests/lib/Comments/CommentTest.php
+++ b/tests/lib/Comments/CommentTest.php
@@ -12,6 +12,7 @@ class CommentTest extends TestCase {
$id = 'comment23';
$parentId = 'comment11.5';
+ $topMostParentId = 'comment11.0';
$childrenCount = 6;
$message = 'I like to comment comment';
$verb = 'comment';
@@ -23,6 +24,7 @@ class CommentTest extends TestCase {
$comment
->setId($id)
->setParentId($parentId)
+ ->setTopmostParentId($topMostParentId)
->setChildrenCount($childrenCount)
->setMessage($message)
->setVerb($verb)
@@ -33,6 +35,7 @@ class CommentTest extends TestCase {
$this->assertSame($id, $comment->getId());
$this->assertSame($parentId, $comment->getParentId());
+ $this->assertSame($topMostParentId, $comment->getTopmostParentId());
$this->assertSame($childrenCount, $comment->getChildrenCount());
$this->assertSame($message, $comment->getMessage());
$this->assertSame($verb, $comment->getVerb());
@@ -65,6 +68,7 @@ class CommentTest extends TestCase {
public function simpleSetterProvider() {
return [
['Id', true],
+ ['TopmostParentId', true],
['ParentId', true],
['Message', true],
['Verb', true],