comparison core/modules/comment/tests/src/Functional/CommentThreadingTest.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
51 // Confirm that the comment was created and has the correct threading. 51 // Confirm that the comment was created and has the correct threading.
52 $this->assertTrue($this->commentExists($comment1_3, TRUE), 'Comment #1_3. Reply found.'); 52 $this->assertTrue($this->commentExists($comment1_3, TRUE), 'Comment #1_3. Reply found.');
53 $this->assertEqual($comment1_3->getThread(), '01.00/'); 53 $this->assertEqual($comment1_3->getThread(), '01.00/');
54 // Confirm that there is a link to the parent comment. 54 // Confirm that there is a link to the parent comment.
55 $this->assertParentLink($comment1_3->id(), $comment1->id()); 55 $this->assertParentLink($comment1_3->id(), $comment1->id());
56
57 56
58 // Reply to comment #1_3 creating comment #1_3_4. 57 // Reply to comment #1_3 creating comment #1_3_4.
59 $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $comment1_3->id()); 58 $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $comment1_3->id());
60 $comment1_3_4 = $this->postComment(NULL, $this->randomMachineName(), $this->randomMachineName(), TRUE); 59 $comment1_3_4 = $this->postComment(NULL, $this->randomMachineName(), $this->randomMachineName(), TRUE);
61 60