diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php index e0b9b92..58cf0ee 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php @@ -176,11 +176,15 @@ function addCustomMenu() { // Enable the custom menu block. $menu_name = 'menu-' . $menu_name; // Drupal prepends the name with 'menu-'. - $edit = array(); - $edit['blocks[menu_' . $menu_name . '][region]'] = 'sidebar_first'; - $this->drupalPost('admin/structure/block', $edit, t('Save blocks')); + $default_theme = variable_get('theme_default', 'stark'); + $this->drupalGet("admin/structure/block/list/block_plugin_ui:{$default_theme}/add"); + $this->assertText('Menu: ' . $title); + $block = array( + 'machine_name' => $this->randomName(8), + 'region' => 'sidebar_first', + ); + $this->drupalPost("admin/structure/block/manage/system_menu_block:$menu_name", $block, t('Save block')); $this->assertResponse(200); - $this->assertText(t('The block settings have been updated.'), 'Custom menu block was enabled'); return menu_load($menu_name); }