diff --git a/core/modules/block/src/Tests/BlockTest.php b/core/modules/block/src/Tests/BlockTest.php index d906840..53eb1fd 100644 --- a/core/modules/block/src/Tests/BlockTest.php +++ b/core/modules/block/src/Tests/BlockTest.php @@ -136,7 +136,7 @@ function testBlockVisibilityListedEmpty() { */ function testBlock() { // Place page title block to test error messages. - $this->drupalPlaceBlock('page_title_block'); + //$this->drupalPlaceBlock('page_title_block'); // Select the 'Powered by Drupal' block to be configured and moved. $block = array(); @@ -163,7 +163,7 @@ function testBlock() { $this->clickLink('Disable'); // Confirm that the block is now listed as disabled. - $this->assertText(t('The block settings have been updated.'), 'Block successfully move to disabled region.'); + $this->assertText(t('The block settings have been updated.'), 'Block successfully moved to disabled region.'); // Confirm that the block instance title and markup are not displayed. $this->drupalGet('node'); @@ -176,7 +176,7 @@ function testBlock() { // Test deleting the block from the edit form. $this->drupalGet('admin/structure/block/manage/' . $block['id']); $this->clickLink(t('Delete')); - $this->assertRaw(t('Are you sure you want to delete the block %name?', array('%name' => $block['settings[label]']))); + $this->assertRaw(t('Are you sure you want to delete the block @name?', array('@name' => $block['settings[label]']))); $this->drupalPostForm(NULL, array(), t('Delete')); $this->assertRaw(t('The block %name has been deleted.', array('%name' => $block['settings[label]']))); @@ -184,7 +184,7 @@ function testBlock() { $block = $this->drupalPlaceBlock('system_powered_by_block'); $this->drupalGet('admin/structure/block/manage/' . $block->id(), array('query' => array('destination' => 'admin'))); $this->clickLink(t('Delete')); - $this->assertRaw(t('Are you sure you want to delete the block %name?', array('%name' => $block->label()))); + $this->assertRaw(t('Are you sure you want to delete the block @name?', array('@name' => $block->label()))); $this->drupalPostForm(NULL, array(), t('Delete')); $this->assertRaw(t('The block %name has been deleted.', array('%name' => $block->label()))); $this->assertUrl('admin');