protected function MigrateDrupal6TestBase::migrateUsers in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate_drupal/src/Tests/d6/MigrateDrupal6TestBase.php \Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase::migrateUsers()
Executes all user migrations.
Parameters
bool $include_pictures: If TRUE, migrates user pictures.
5 calls to MigrateDrupal6TestBase::migrateUsers()
- MigrateDrupal6TestBase::migrateContent in core/
modules/ migrate_drupal/ src/ Tests/ d6/ MigrateDrupal6TestBase.php - Executes all content migrations.
- MigrateNodeTestBase::setUp in core/
modules/ node/ src/ Tests/ Migrate/ d6/ MigrateNodeTestBase.php - Performs setup tasks before each individual test method is run.
- MigrateUserContactSettingsTest::setUp in core/
modules/ user/ src/ Tests/ Migrate/ d6/ MigrateUserContactSettingsTest.php - Performs setup tasks before each individual test method is run.
- MigrateUserProfileValuesTest::setUp in core/
modules/ user/ src/ Tests/ Migrate/ d6/ MigrateUserProfileValuesTest.php - Performs setup tasks before each individual test method is run.
- MigrateUserTest::setUp in core/
modules/ user/ src/ Tests/ Migrate/ d6/ MigrateUserTest.php - Performs setup tasks before each individual test method is run.
File
- core/
modules/ migrate_drupal/ src/ Tests/ d6/ MigrateDrupal6TestBase.php, line 47 - Contains \Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase.
Class
- MigrateDrupal6TestBase
- Base class for Drupal 6 migration tests.
Namespace
Drupal\migrate_drupal\Tests\d6Code
protected function migrateUsers($include_pictures = TRUE) {
$this
->executeMigrations([
'd6_filter_format',
'd6_user_role',
]);
if ($include_pictures) {
$this
->installEntitySchema('file');
$this
->executeMigrations([
'd6_file',
'd6_user_picture_file',
'user_picture_field',
'user_picture_field_instance',
'user_picture_entity_display',
'user_picture_entity_form_display',
]);
}
else {
// These are optional dependencies of d6_user, but we don't need them if
// we're not migrating user pictures.
Migration::load('d6_user_picture_file')
->delete();
Migration::load('user_picture_entity_display')
->delete();
Migration::load('user_picture_entity_form_display')
->delete();
}
$this
->executeMigration('d6_user');
}