You are here

function i18n_Blocks_Test::i18nDeleteBlock in Internationalization 6

Delete block

File

tests/i18n_blocks.test, line 154

Class

i18n_Blocks_Test

Code

function i18nDeleteBlock($bid) {

  // Delete the created box & verify that it's been deleted and no longer appearing on the page.
  $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.'));
}