diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php index 88df26d..44593cf 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php @@ -436,13 +436,17 @@ function testBlockModuleDisable() { $this->drupalPost('admin/structure/block/manage/' . $block_id . '/stark', $edit, t('Save block')); $this->assertText(t('The block configuration has been saved.')); + // Update the weight of a block. + $edit = array('blocks[0][weight]' => -1); + $this->drupalPost('admin/structure/block', $edit, t('Save blocks')); + // Re-enable the module and refresh the definitions cache. module_enable(array('block_test'), FALSE); $manager->clearCachedDefinitions(); // Reload the admin page and confirm the block can again be configured. $this->drupalGet('admin/structure/block'); - $this->assertLinkByHref(url('admin/structure/block/manage/plugin.core.block.stark.' . $edit['machine_name'] . '/stark/config')); + $this->assertLinkByHref(url('admin/structure/block/manage/plugin.core.block.stark.' . $block['machine_name'] . '/stark/config')); // Confirm that the block is again displayed on the front page. $this->drupalGet('');