diff options
Diffstat (limited to 'modules/block/block.test')
-rw-r--r-- | modules/block/block.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/block/block.test b/modules/block/block.test index 509264e26..73403d4b7 100644 --- a/modules/block/block.test +++ b/modules/block/block.test @@ -79,7 +79,8 @@ class BlockTestCase extends DrupalWebTestCase { $custom_block['info'] = $this->randomName(8); $custom_block['title'] = $this->randomName(8); $custom_block['body'] = '<h1>Full HTML</h1>'; - $custom_block['body_format'] = 2; + $full_html_format_id = db_query_range('SELECT format FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'Full HTML'))->fetchField(); + $custom_block['body_format'] = $full_html_format_id; $this->drupalPost('admin/structure/block/add', $custom_block, t('Save block')); // Set the created custom block to a specific region. |