class UserMigrationClassTest

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

Tests the user migration plugin class.

@group user

Hierarchy

Expanded class hierarchy of UserMigrationClassTest

File

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

Namespace

Drupal\Tests\user\Kernel\Migrate\d7
View source
class UserMigrationClassTest extends MigrateDrupal7TestBase {
  
  /**
   * 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.
   */
  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']);
  }

}

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