function EntityContentBaseTest::testOverwriteAllMappedProperties

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\EntityContentBaseTest::testOverwriteAllMappedProperties()
  2. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\EntityContentBaseTest::testOverwriteAllMappedProperties()
  3. 10 core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\EntityContentBaseTest::testOverwriteAllMappedProperties()

Tests overwriting all mapped properties in the destination entity.

This is the default behavior.

File

core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php, line 66

Class

EntityContentBaseTest
@group migrate_drupal

Namespace

Drupal\Tests\migrate_drupal\Kernel\d6

Code

public function testOverwriteAllMappedProperties() : void {
    $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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.