diff --git a/core/modules/user/lib/Drupal/user/Tests/UserAdminSettingsFormTest.php b/core/modules/user/lib/Drupal/user/Tests/UserAdminSettingsFormTest.php index e74a8ea..89916ed 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserAdminSettingsFormTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserAdminSettingsFormTest.php @@ -8,6 +8,7 @@ namespace Drupal\user\Tests; use Drupal\system\Tests\System\SystemConfigFormBase; +use Drupal\user\AccountSettingsForm; class UserAdminSettingsFormTest extends SystemConfigFormBase { @@ -21,8 +22,8 @@ public static function getInfo() { public function setUp() { parent::setUp(); - module_load_include('admin.inc', 'user'); - $this->form_id = 'user_admin_settings'; + + $this->form_id = AccountSettingsForm::create($this->container); $this->values = array( 'anonymous' => array( '#value' => $this->randomString(10),