diff -u b/core/modules/user/src/Tests/Migrate/d7/MigrateUserTest.php b/core/modules/user/src/Tests/Migrate/d7/MigrateUserTest.php --- b/core/modules/user/src/Tests/Migrate/d7/MigrateUserTest.php +++ b/core/modules/user/src/Tests/Migrate/d7/MigrateUserTest.php @@ -49,7 +49,7 @@ * The username. * @param string $mail * The user's email address. - * @param string $passwd + * @param string $password * The password for this user. * @param int $access * The last access time. @@ -67,7 +67,7 @@ * Whether the user is expected to have a picture attached. */ - protected function assertEntity($id, $label, $mail, $passwd, $access, $login, $blocked, $langcode, $init, array $roles = [RoleInterface::AUTHENTICATED_ID], $has_picture = FALSE) { + protected function assertEntity($id, $label, $mail, $password, $access, $login, $blocked, $langcode, $init, array $roles = [RoleInterface::AUTHENTICATED_ID], $has_picture = FALSE) { /** @var \Drupal\user\UserInterface $user */ $user = User::load($id); $this->assertTrue($user instanceof UserInterface); @@ -85,15 +85,15 @@ $this->assertIdentical($init, $user->getInitialEmail()); $this->assertIdentical($roles, $user->getRoles()); $this->assertIdentical($has_picture, !$user->user_picture->isEmpty()); - $this->assertIdentical($passwd, $user->getPassword()); + $this->assertIdentical($password, $user->getPassword()); } /** * Tests the Drupal 7 user to Drupal 8 migration. */ public function testUser() { - $passwd = '$S$DZ4P7zZOh92vgrgZDBbv8Pu6lQB337OJ1wsOy21602G4A5F7.M9K'; - $this->assertEntity(2, 'Odo', 'odo@local.host', $passwd, '0', '0', FALSE, '', 'odo@local.host'); + $password = '$S$DZ4P7zZOh92vgrgZDBbv8Pu6lQB337OJ1wsOy21602G4A5F7.M9K'; + $this->assertEntity(2, 'Odo', 'odo@local.host', $password, '0', '0', FALSE, '', 'odo@local.host'); } }