diff --git a/core/modules/comment/src/Tests/CommentTitleTest.php b/core/modules/comment/src/Tests/CommentTitleTest.php index 598c410..f9d0b77 100644 --- a/core/modules/comment/src/Tests/CommentTitleTest.php +++ b/core/modules/comment/src/Tests/CommentTitleTest.php @@ -27,11 +27,9 @@ public function testCommentEmptyTitles() { \Drupal::moduleHandler()->install(array('comment_empty_titles_test')); // 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); @@ -55,11 +53,9 @@ public function testCommentEmptyTitles() { */ public function testCommentPopulatedTitles() { // 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);