Mercurial > hg > isophonics-drupal-site
diff core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php Thu May 09 15:33:08 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']);