comparison core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
8 * Tests user edited own account can still log in. 8 * Tests user edited own account can still log in.
9 * 9 *
10 * @group user 10 * @group user
11 */ 11 */
12 class UserEditedOwnAccountTest extends BrowserTestBase { 12 class UserEditedOwnAccountTest extends BrowserTestBase {
13
14 /**
15 * Modules to enable.
16 *
17 * @var array
18 */
19 public static $modules = ['user_form_test'];
20 13
21 public function testUserEditedOwnAccount() { 14 public function testUserEditedOwnAccount() {
22 // Change account setting 'Who can register accounts?' to Administrators 15 // Change account setting 'Who can register accounts?' to Administrators
23 // only. 16 // only.
24 $this->config('user.settings')->set('register', USER_REGISTER_ADMINISTRATORS_ONLY)->save(); 17 $this->config('user.settings')->set('register', USER_REGISTER_ADMINISTRATORS_ONLY)->save();