@@ -29,13 +29,16 @@ function block_help($path, $arg) {
$output.='<li>'.t('some dynamic blocks, such as those generated by modules, will be displayed only on certain pages.').'</li></ul>';
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@block">Block module</a>.',array('@block'=>'http://drupal.org/handbook/modules/block/')).'</p>';
return$output;
case'admin/structure/block':
$output='<p>'.t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page.').'</p>';
$output.='<p>'.t('Click the <em>configure</em> link next to each block to configure its specific title and visibility settings. Use the <a href="@add-block">add block page</a> to create a custom block.',array('@add-block'=>url('admin/structure/block/add'))).'</p>';
return$output;
case'admin/structure/block/add':
return'<p>'.t('Use this page to create a new custom block. New blocks are disabled by default, and must be moved to a region on the <a href="@blocks">blocks administration page</a> to be visible.',array('@blocks'=>url('admin/structure/block'))).'</p>';
$output='<p>'.t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page. Click the <em>configure</em> link next to each block to configure its specific title and visibility settings.').'</p>';
$output.='<p>'.l(t('Demonstrate block regions (@theme)',array('@theme'=>$themes[$demo_theme]->info['name'])),'admin/structure/block/demo/'.$demo_theme).'</p>';
// Confirm that the custom block is being displayed using configured text format.
$this->drupalGet('node');
$this->assertRaw('<h1>Full HTML</h1>',t('Custom block successfully being displayed using Full HTML.'));
// Confirm that a user without access to Full HTML can not see the body field,
...
...
@@ -96,6 +98,7 @@ class BlockTestCase extends DrupalWebTestCase {
$this->assertNoText(t('Please ensure that each block description is unique.'));
// Confirm that the custom block is still being displayed using configured text format.
$this->drupalGet('node');
$this->assertRaw('<h1>Full HTML</h1>',t('Custom block successfully being displayed using Full HTML.'));
}
...
...
@@ -206,6 +209,7 @@ class BlockTestCase extends DrupalWebTestCase {
$this->assertText(t('The block settings have been updated.'),t('Block successfully moved to %region_name region.',array('%region_name'=>$region['name'])));
// Confirm that the block is being displayed.
$this->drupalGet('node');
$this->assertText(t($block['title']),t('Block successfully being displayed on the page.'));
// Confirm that the custom block was found at the proper region.
...
...
@@ -231,7 +235,6 @@ class NonDefaultBlockAdmin extends DrupalWebTestCase {