You are here

public function UserMigrationClassTest::testClass in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php \Drupal\Tests\user\Kernel\Migrate\d7\UserMigrationClassTest::testClass()
  2. 9 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
    ->assertSame('d7_user', $migration
    ->id());
  $process = $migration
    ->getProcess();
  $this
    ->assertSame('field_file', $process['field_file'][0]['source']);
}