Commit fd22bf9a authored by webchick's avatar webchick

#446742 follow-up by sun: Fix syntax change in randomName().

parent c160d237
......@@ -456,7 +456,7 @@ class SearchCommentTestCase extends DrupalWebTestCase {
* Verify that comments are rendered using proper format in search results.
*/
function testSearchResultsComment() {
$comment_body = $this->randomName(5, '');
$comment_body = $this->randomName(5);
variable_set('comment_preview_article', COMMENT_PREVIEW_OPTIONAL);
// Enable check_plain() for 'Filtered HTML' text format.
......@@ -481,7 +481,7 @@ class SearchCommentTestCase extends DrupalWebTestCase {
$node = $this->drupalCreateNode(array('type' => 'article'));
// Post a comment using 'Full HTML' text format.
$edit_comment = array(
'subject' => $this->randomName(2, ''),
'subject' => $this->randomName(2),
'comment' => '<h1>' . $comment_body . '</h1>',
'comment_format' => 2,
);
......
Markdown is supported
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