diff --git a/core/modules/user/lib/Drupal/user/Tests/UserEditedOwnAccountTest.php b/core/modules/user/lib/Drupal/user/Tests/UserEditedOwnAccountTest.php index d5d30ea..9d475b7 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserEditedOwnAccountTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserEditedOwnAccountTest.php @@ -50,7 +50,7 @@ function testUserEditedOwnAccount() { $this->assertNoText(t('The changes have been saved.'), 'The user account was not saved.'); // Lookup user by name to make sure we didn't actually change the name. - $accounts = \Drupal::entityManager()->getStorageController('user')->loadByProperties(array('name' => $edit['name'])); + $accounts = \Drupal::entityManager()->getStorage('user')->loadByProperties(array('name' => $edit['name'])); $this->assertTrue(empty($accounts), 'Username was not changed to email address other than my own.'); // Change username to my email address. diff --git a/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php b/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php index 19701cf..fb4206f 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php @@ -182,7 +182,7 @@ function testRegistrationEmailAsUsername() { $this->drupalPostForm('user/register', $edit, t('Create new account')); $this->assertText(t('Registration successful. You are now logged in.'), 'The user was created and logged in with matching email.'); - $accounts = \Drupal::entityManager()->getStorageController('user')->loadByProperties(array('name' => $edit['name'])); + $accounts = \Drupal::entityManager()->getStorage('user')->loadByProperties(array('name' => $edit['name'])); $new_user = reset($accounts); $this->assertTrue(($new_user->getUsername() === $edit['name']) && ($new_user->getEmail() === $edit['mail']), 'Created user with matching username and email address.'); }