Commit 7addef29 authored by webchick's avatar webchick

#372400 by swentel and BrightLoudNoise: Fix 'delete' link on block administration screen.

parent 295feb1d
......@@ -80,7 +80,7 @@ function block_admin_display_form(&$form_state, $blocks, $theme = NULL) {
);
if ($block['module'] == 'block') {
$form[$key]['delete'] = array(
'#value' => l(t('delete'),
'#markup' => l(t('delete'),
'admin/build/block/delete/' . $block['delta']),
);
}
......
......@@ -54,6 +54,7 @@ class BlockTestCase extends DrupalWebTestCase {
}
// Delete the created box & verify that it's been deleted and no longer appearing on the page.
$this->clickLink(t('delete'));
$this->drupalPost('admin/build/block/delete/' . $bid, array(), t('Delete'));
$this->assertRaw(t('The block %title has been removed.', array('%title' => $box['info'])), t('Box successfully deleted.'));
$this->assertNoText(t($box['title']), t('Box no longer appears on page.'));
......
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