reverted: --- b/core/modules/comment/src/Tests/CommentEmptyTitlesTest.php +++ /dev/null @@ -1,56 +0,0 @@ - 'Comment empty titles', - 'description' => 'Test to ensure that appropriate and accessible markup is used when comments are created without titles.', - 'group' => 'Comment', - ); - } - - /** - * Enables module that sets comments to = ''. - */ - public static $modules = array('comment_test'); - - /** - * Tests markup for comments with empty titles. - */ - function testCommentEmptyTitles () { - // Set comments to have a subject with preview disabled. - $this->drupalLogin($this->admin_user); - $this->setCommentPreview(DRUPAL_DISABLED); - $this->setCommentForm(TRUE); - $this->setCommentSubject(TRUE); - $this->drupalLogout(); - - // Create a node. - $this->drupalLogin($this->web_user); - $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'uid' => $this->web_user->id())); - - // Post comment #1 and verify that title is rendered in h3. - $this->drupalLogin($this->web_user); - $subject_text = $this->randomName(); - $comment_text = $this->randomName(); - $comment1 = $this->postComment($this->node, $comment_text, $subject_text, TRUE); - // Confirm that the comment was created. - $this->assertTrue($this->commentExists($comment1), 'Comment #1. Comment found.'); - // Tests that markup is created for comment with heading. - $this->assertNoPattern('|