From ad7b2772a7847b5425780396ea213969daea0d7f Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Wed, 3 Oct 2012 09:43:31 -0700 Subject: [PATCH] Issue #1742602 by Lars Toomre: Remove a few more t() from test assertions in comment module --- .../comment/lib/Drupal/comment/Tests/CommentBlockTest.php | 2 +- .../comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php | 2 +- .../comment/lib/Drupal/comment/Tests/CommentTestBase.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php index 7ad0a74ca4c..fc6aabe51cf 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php @@ -84,7 +84,7 @@ class CommentBlockTest extends CommentTestBase { $this->assertText($comment1->subject, 'Comment found in block.'); $this->assertText($comment2->subject, 'Comment found in block.'); $this->assertText($comment3->comment, 'Comment found in block.'); - $this->assertText($comment4->subject, t('Comment found in block.')); + $this->assertText($comment4->subject, 'Comment found in block.'); // Test that links to comments work when comments are across pages. $this->setCommentsPerPage(1); diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php index 1d380751026..6ed97cb0341 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php @@ -97,7 +97,7 @@ class CommentInterfaceTest extends CommentTestBase { // Second reply to comment #3 creating comment #4. $this->drupalGet('comment/reply/' . $this->node->nid . '/' . $comment->id); - $this->assertText($subject_text, t('Individual comment-reply subject found.')); + $this->assertText($subject_text, 'Individual comment-reply subject found.'); $this->assertText($comment_text, 'Individual comment-reply body found.'); $reply = $this->postComment(NULL, $this->randomName(), $this->randomName(), TRUE); $reply_loaded = comment_load($reply->id); diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php index 008b1f8e7b7..db98d54f7e7 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php @@ -224,7 +224,8 @@ abstract class CommentTestBase extends WebTestBase { */ function setCommentSettings($name, $value, $message) { variable_set($name . '_article', $value); - $this->assertTrue(TRUE, t($message)); // Display status message. + // Display status message. + $this->assertTrue(TRUE, $message); } /**