diff options
Diffstat (limited to 'modules/search/search.test')
-rw-r--r-- | modules/search/search.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/search/search.test b/modules/search/search.test index 179e81a10..d428ed87b 100644 --- a/modules/search/search.test +++ b/modules/search/search.test @@ -502,8 +502,9 @@ class SearchCommentTestCase extends DrupalWebTestCase { variable_set('comment_preview_article', DRUPAL_OPTIONAL); // Enable check_plain() for 'Filtered HTML' text format. + $filtered_html_format_id = db_query_range('SELECT format FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'Filtered HTML'))->fetchField(); $edit = array( - 'filters[filter_html_escape][status]' => 1, + 'filters[filter_html_escape][status]' => $filtered_html_format_id, ); $this->drupalPost('admin/config/content/formats/1', $edit, t('Save configuration')); // Allow anonymous users to search content. @@ -525,7 +526,8 @@ class SearchCommentTestCase extends DrupalWebTestCase { $edit_comment = array(); $edit_comment['subject'] = 'Test comment subject'; $edit_comment['comment_body[' . LANGUAGE_NONE . '][0][value]'] = '<h1>' . $comment_body . '</h1>'; - $edit_comment['comment_body[' . LANGUAGE_NONE . '][0][value_format]'] = 2; + $full_html_format_id = db_query_range('SELECT format FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'Full HTML'))->fetchField(); + $edit_comment['comment_body[' . LANGUAGE_NONE . '][0][value_format]'] = $full_html_format_id; $this->drupalPost('comment/reply/' . $node->nid, $edit_comment, t('Save')); // Invoke search index update. |