UserMigrationClassTest.php
Same filename in other branches
Namespace
Drupal\Tests\user\Kernel\Migrate\d7File
-
core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d7/ UserMigrationClassTest.php
View source
<?php
namespace Drupal\Tests\user\Kernel\Migrate\d7;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests the user migration plugin class.
*
* @group user
*/
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->assertIdentical('d7_user', $migration->id());
$process = $migration->getProcess();
$this->assertIdentical('field_file', $process['field_file'][0]['source']);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
UserMigrationClassTest | Tests the user migration plugin class. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.