Tests that comments are deleted with the node.
function testNodeDeletion() {
$this
->drupalLogin($this->web_user);
$comment = $this
->postComment($this->node, $this
->randomName(), $this
->randomName());
$this
->assertTrue($comment
->id(), 'The comment could be loaded.');
$this->node
->delete();
$this
->assertFalse(comment_load($comment
->id()), 'The comment could not be loaded after the node was deleted.');
}