Commit ad7b2772 authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

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

parent c4a4964b
...@@ -84,7 +84,7 @@ function testRecentCommentBlock() { ...@@ -84,7 +84,7 @@ function testRecentCommentBlock() {
$this->assertText($comment1->subject, 'Comment found in block.'); $this->assertText($comment1->subject, 'Comment found in block.');
$this->assertText($comment2->subject, 'Comment found in block.'); $this->assertText($comment2->subject, 'Comment found in block.');
$this->assertText($comment3->comment, '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. // Test that links to comments work when comments are across pages.
$this->setCommentsPerPage(1); $this->setCommentsPerPage(1);
......
...@@ -97,7 +97,7 @@ function testCommentInterface() { ...@@ -97,7 +97,7 @@ function testCommentInterface() {
// Second reply to comment #3 creating comment #4. // Second reply to comment #3 creating comment #4.
$this->drupalGet('comment/reply/' . $this->node->nid . '/' . $comment->id); $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.'); $this->assertText($comment_text, 'Individual comment-reply body found.');
$reply = $this->postComment(NULL, $this->randomName(), $this->randomName(), TRUE); $reply = $this->postComment(NULL, $this->randomName(), $this->randomName(), TRUE);
$reply_loaded = comment_load($reply->id); $reply_loaded = comment_load($reply->id);
......
...@@ -224,7 +224,8 @@ function setCommentsPerPage($number) { ...@@ -224,7 +224,8 @@ function setCommentsPerPage($number) {
*/ */
function setCommentSettings($name, $value, $message) { function setCommentSettings($name, $value, $message) {
variable_set($name . '_article', $value); variable_set($name . '_article', $value);
$this->assertTrue(TRUE, t($message)); // Display status message. // Display status message.
$this->assertTrue(TRUE, $message);
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment