diff 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
line wrap: on
line diff
--- a/core/modules/user/tests/src/Functional/UserEditTest.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/user/tests/src/Functional/UserEditTest.php	Thu May 09 15:33:08 2019 +0100
@@ -22,7 +22,7 @@
     $this->drupalLogin($user1);
 
     // Test that error message appears when attempting to use a non-unique user name.
-    $edit['name'] = $user2->getUsername();
+    $edit['name'] = $user2->getAccountName();
     $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save'));
     $this->assertRaw(t('The username %name is already taken.', ['%name' => $edit['name']]));