function UserMigrationClassTest::testClass

Same name and namespace in other branches
  1. 9 core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php \Drupal\Tests\user\Kernel\Migrate\d7\UserMigrationClassTest::testClass()
  2. 10 core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php \Drupal\Tests\user\Kernel\Migrate\d7\UserMigrationClassTest::testClass()
  3. 11.x core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php \Drupal\Tests\user\Kernel\Migrate\d7\UserMigrationClassTest::testClass()

Tests that the profile value process is added to the pipeline.

Ensures profile fields are merged into the d7_profile_values migration's process pipeline.

File

core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php, line 20

Class

UserMigrationClassTest
Tests the user migration plugin class.

Namespace

Drupal\Tests\user\Kernel\Migrate\d7

Code

public function testClass() {
    $migration = $this->getMigration('d7_user');
    
    /** @var \Drupal\migrate\Plugin\MigrationInterface[] $migrations */
    $this->assertIdentical('d7_user', $migration->id());
    $process = $migration->getProcess();
    $this->assertIdentical('field_file', $process['field_file'][0]['source']);
}

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