diff --git a/core/modules/system/lib/Drupal/system/Tests/Upgrade/UserRoleUpgradePathTest.php b/core/modules/system/lib/Drupal/system/Tests/Upgrade/UserRoleUpgradePathTest.php index aea9729..21f5faf 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/UserRoleUpgradePathTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/UserRoleUpgradePathTest.php @@ -70,19 +70,4 @@ public function testRoleUpgrade() { $this->drupalGet('admin/config/people/accounts'); $this->assertFieldByName('user_admin_role', 3); } - - /** - * Tests that roles were converted to config. - */ - public function testRoleUpgradeToConfig() { - $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.'); - - // Check that the 'anonymous' role has been converted to config. - $anonymous = entity_load('user_role', DRUPAL_ANONYMOUS_RID); - $this->assertNotEqual(FALSE, $anonymous, "The 'anonymous' role has been converted to config."); - - // Check that the 'authenticated' role has been converted to config. - $authenticated = entity_load('user_role', DRUPAL_AUTHENTICATED_RID); - $this->assertNotEqual(FALSE, $authenticated, "The 'authenticated' role has been converted to config."); - } } diff --git a/core/modules/user/user.install b/core/modules/user/user.install index 0a37810..4f2ec7d 100644 --- a/core/modules/user/user.install +++ b/core/modules/user/user.install @@ -1043,10 +1043,6 @@ function user_update_8017() { ->set('weight', $role->weight) ->save(); } - - update_config_manifest_add('user.role', array_map(function ($role) { - return $role->rid; - }, $roles)); } /**