private function TagadelicTaxonomyTestCase::enableBlock in Tagadelic 7.2
3 calls to TagadelicTaxonomyTestCase::enableBlock()
File
- tests/
tagadelic_taxonomy.test, line 255
Class
Code
private function enableBlock() {
theme_enable(array(
'seven',
));
$region = 'content';
$module = 'tagadelic_taxonomy';
// set the block to a theme region, taken from block.test
$delta = db_query("SELECT delta FROM {block} WHERE module = :module AND theme = :theme", array(
':module' => $module,
':theme' => 'seven',
))
->fetchField();
$edit = array();
$edit['blocks[' . $module . '_' . $delta . '][region]'] = $region;
$this
->drupalLogin($this->admin_user);
$this
->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this
->drupalLogout();
}