Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/tests/src/Functional/UserEditTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
20 $user1 = $this->drupalCreateUser(['change own username']); | 20 $user1 = $this->drupalCreateUser(['change own username']); |
21 $user2 = $this->drupalCreateUser([]); | 21 $user2 = $this->drupalCreateUser([]); |
22 $this->drupalLogin($user1); | 22 $this->drupalLogin($user1); |
23 | 23 |
24 // Test that error message appears when attempting to use a non-unique user name. | 24 // Test that error message appears when attempting to use a non-unique user name. |
25 $edit['name'] = $user2->getUsername(); | 25 $edit['name'] = $user2->getAccountName(); |
26 $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save')); | 26 $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save')); |
27 $this->assertRaw(t('The username %name is already taken.', ['%name' => $edit['name']])); | 27 $this->assertRaw(t('The username %name is already taken.', ['%name' => $edit['name']])); |
28 | 28 |
29 // Check that the default value in user name field | 29 // Check that the default value in user name field |
30 // is the raw value and not a formatted one. | 30 // is the raw value and not a formatted one. |