function i18n_Blocks_Test::i18nUpdateBlockRegion in Internationalization 6
Update block region
1 call to i18n_Blocks_Test::i18nUpdateBlockRegion()
- i18n_Blocks_Test::i18nCreateBox in tests/
i18n_blocks.test - Test creating custom block (i.e. box), moving it to a specific region and then deleting it.
File
- tests/
i18n_blocks.test, line 142
Class
Code
function i18nUpdateBlockRegion($module, $delta, $region) {
// Set the created box to a specific region.
// TODO: Implement full region checking.
$edit = array();
$edit[$module . '_' . $delta . '[region]'] = $region;
$this
->drupalPost('admin/build/block', $edit, t('Save blocks'));
// Confirm that the box was moved to the proper region.
$this
->assertText(t('The block settings have been updated.'), "Box successfully moved to {$region} region.");
}