diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php index 8beda0b..2f1f39e 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockCreationTest.php @@ -143,7 +143,7 @@ public function testBlockDelete() { // Place the block. $instance = array( - 'machine_name' => drupal_strtolower($edit['info']), + 'id' => drupal_strtolower($edit['info']), 'settings[label]' => $edit['info'], 'region' => 'sidebar_first', ); diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php index da5ac4f..ec3bd37 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php @@ -101,7 +101,7 @@ public function testBlockFields() { $this->drupalPost(NULL, $edit, t('Save')); // Place the block. $instance = array( - 'machine_name' => drupal_strtolower($edit['info']), + 'id' => drupal_strtolower($edit['info']), 'settings[label]' => $edit['info'], 'region' => 'sidebar_first', ); diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockLanguageTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockLanguageTest.php index 69d5ccd..8874eec 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockLanguageTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockLanguageTest.php @@ -62,7 +62,7 @@ public function testLanguageBlockVisibility() { // Enable a standard block and set the visibility setting for one language. $edit = array( 'visibility[language][langcodes][en]' => TRUE, - 'machine_name' => strtolower($this->randomName(8)), + 'id' => strtolower($this->randomName(8)), 'region' => 'sidebar_first', ); $this->drupalPost('admin/structure/block/add/system_powered_by_block' . '/' . $default_theme, $edit, t('Save block')); diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockTemplateSuggestionsUnitTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockTemplateSuggestionsUnitTest.php index 51630ba..fa6faf2 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockTemplateSuggestionsUnitTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockTemplateSuggestionsUnitTest.php @@ -40,7 +40,7 @@ function testBlockThemeHookSuggestions() { $block = entity_create('block', array( 'plugin' => 'system_menu_block:menu-admin', 'region' => 'footer', - 'id' => config('system.theme')->get('default') . '.machinename', + 'id' => 'machinename', )); $variables = array(); diff --git a/core/modules/system/lib/Drupal/system/Tests/System/AccessDeniedTest.php b/core/modules/system/lib/Drupal/system/Tests/System/AccessDeniedTest.php index eb4ba4a..32298d9 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/AccessDeniedTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/AccessDeniedTest.php @@ -82,7 +82,7 @@ function testAccessDenied() { $edit = array( 'region' => -1, ); - $this->drupalPost('admin/structure/block/manage/stark.login', $edit, t('Save block')); + $this->drupalPost('admin/structure/block/manage/login', $edit, t('Save block')); // Check that we can log in from the 403 page. $this->drupalLogout(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Upgrade/BlockUpgradePathTest.php b/core/modules/system/lib/Drupal/system/Tests/Upgrade/BlockUpgradePathTest.php index 45f2efb..24dc839 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/BlockUpgradePathTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/BlockUpgradePathTest.php @@ -43,7 +43,7 @@ public function testBlockUpgradeTitleLength() { // Confirm that the custom block has been created, and title matches input. $settings = array( 'settings[label]' => $this->randomName(255), - 'machine_name' => strtolower($this->randomName(8)), + 'id' => strtolower($this->randomName(8)), 'region' => 'sidebar_first', ); $this->drupalPost('admin/structure/block/add/system_powered_by_block/' . config('system.theme')->get('default'), $settings, t('Save block')); @@ -52,7 +52,7 @@ public function testBlockUpgradeTitleLength() { // Try to add a block with a title over 255 characters. $settings = array( 'settings[label]' => $this->randomName(256), - 'machine_name' => strtolower($this->randomName(8)), + 'id' => strtolower($this->randomName(8)), 'region' => 'sidebar_first', ); $this->drupalPost('admin/structure/block/add/system_powered_by_block/' . config('system.theme')->get('default'), $settings, t('Save block')); diff --git a/core/profiles/standard/lib/Drupal/standard/Tests/StandardTest.php b/core/profiles/standard/lib/Drupal/standard/Tests/StandardTest.php index fc21631..4ed4a3d 100644 --- a/core/profiles/standard/lib/Drupal/standard/Tests/StandardTest.php +++ b/core/profiles/standard/lib/Drupal/standard/Tests/StandardTest.php @@ -40,7 +40,7 @@ function testStandard() { $this->drupalGet('admin/structure/block/add/system_menu_block:menu-main/bartik'); $this->drupalPost(NULL, array( 'region' => 'sidebar_first', - 'machine_name' => 'main_navigation', + 'id' => 'main_navigation', ), t('Save block')); // Verify admin user can see the block. $this->drupalGet('');