$this->assertFalse(isset($elements[0]),format_string('The hidden region @region is not available for @theme.',array('@region'=>$hidden_region,'@theme'=>$key)));
}
}
}
// Add a new custom block by filling out the input form on block/add/basic.
$this->assertFieldByXPath("//textarea[@name='block_body[und][0][value]' and @disabled='disabled']",t('This field has been disabled because you do not have sufficient permissions to edit it.'),'Body field contains denied message');
$this->assertNoText(t('Ensure that each block description is unique.'));
// Confirm that the custom block is still being displayed using configured
// text format.
$this->drupalGet('');
$this->assertRaw('<h1>Full HTML</h1>','Custom block successfully being displayed using Full HTML.');
// Confirm that the block was moved to the proper region.
$this->assertText(t('The block settings have been updated.'),format_string('Block successfully moved to %region_name region.',array('%region_name'=>$region)));
// Confirm that the block is being displayed.
$this->drupalGet('');
$this->assertText(t($block['title']),'Block successfully being displayed on the page.');
// Confirm that the custom block was found at the proper region.