/**
* Tests overwriting all mapped properties in the destination entity.
*
* This is the default behavior.
*/
public function testOverwriteAllMappedProperties() { $this->
executeMigration('d6_user'
);
/** @var \Drupal\user\UserInterface $account */
$account = User::
load(2
);
$this->
assertSame('john.doe',
$account->
label());
$this->
assertSame('john.doe@example.com',
$account->
getEmail());
$this->
assertSame('doe@example.com',
$account->
getInitialEmail());
} /**
* Tests overwriting selected properties in the destination entity.
*
* The selected properties are specified in the destination configuration.
*/
public function testOverwriteProperties() { // Execute the migration in migrate_overwrite_test, which documents how
// property overwrites work.
$this->
executeMigration('users'
);