Issue #1742602 by Lars Toomre: Remove a few more t() from test assertions in comment module

8.0.x
Jennifer Hodgdon 2012-10-03 09:43:31 -07:00
parent c4a4964b1a
commit ad7b2772a7
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);
}
/**