Mercurial > hg > cmmr2012-drupal-site
diff core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php Thu May 09 15:34:47 2019 +0100 @@ -3,6 +3,7 @@ namespace Drupal\Tests\user\Functional; use Drupal\Tests\BrowserTestBase; +use Drupal\user\UserInterface; /** * Tests user edited own account can still log in. @@ -14,7 +15,7 @@ public function testUserEditedOwnAccount() { // Change account setting 'Who can register accounts?' to Administrators // only. - $this->config('user.settings')->set('register', USER_REGISTER_ADMINISTRATORS_ONLY)->save(); + $this->config('user.settings')->set('register', UserInterface::REGISTER_ADMINISTRATORS_ONLY)->save(); // Create a new user account and log in. $account = $this->drupalCreateUser(['change own username']);