function UserMigrationClassTest::testClass
Same name in other branches
- 9 core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php \Drupal\Tests\user\Kernel\Migrate\d7\UserMigrationClassTest::testClass()
- 8.9.x core/modules/user/tests/src/Kernel/Migrate/d7/UserMigrationClassTest.php \Drupal\Tests\user\Kernel\Migrate\d7\UserMigrationClassTest::testClass()
- 10 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 22
Class
- UserMigrationClassTest
- Tests the user migration plugin class.
Namespace
Drupal\Tests\user\Kernel\Migrate\d7Code
public function testClass() : void {
$migration = $this->getMigration('d7_user');
$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.