You are here

public function EntityContentBaseTest::testOverwriteAllMappedProperties in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate_drupal/src/Tests/d6/EntityContentBaseTest.php \Drupal\migrate_drupal\Tests\d6\EntityContentBaseTest::testOverwriteAllMappedProperties()

Tests overwriting all mapped properties in the destination entity (default behavior).

File

core/modules/migrate_drupal/src/Tests/d6/EntityContentBaseTest.php, line 65
Contains \Drupal\migrate_drupal\Tests\d6\EntityContentBaseTest.

Class

EntityContentBaseTest
@group migrate_drupal

Namespace

Drupal\migrate_drupal\Tests\d6

Code

public function testOverwriteAllMappedProperties() {
  $this
    ->executeMigration('d6_user');

  /** @var \Drupal\user\UserInterface $account */
  $account = User::load(2);
  $this
    ->assertIdentical('john.doe', $account
    ->label());
  $this
    ->assertIdentical('john.doe@example.com', $account
    ->getEmail());
  $this
    ->assertIdentical('doe@example.com', $account
    ->getInitialEmail());
}