function MigrateDrupalTestBase::migrateUsers
Same name in other branches
- 9 core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateDrupalTestBase.php \Drupal\Tests\tracker\Kernel\Migrate\d7\MigrateDrupalTestBase::migrateUsers()
- 11.x core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateDrupalTestBase.php \Drupal\Tests\tracker\Kernel\Migrate\d7\MigrateDrupalTestBase::migrateUsers()
Executes all user migrations.
Parameters
bool $include_pictures: (optional) If TRUE, migrates user pictures. Defaults to TRUE.
2 calls to MigrateDrupalTestBase::migrateUsers()
- MigrateTrackerNodeTest::setUp in core/
modules/ tracker/ tests/ src/ Kernel/ Migrate/ d7/ MigrateTrackerNodeTest.php - MigrateTrackerUserTest::setUp in core/
modules/ tracker/ tests/ src/ Kernel/ Migrate/ d7/ MigrateTrackerUserTest.php
File
-
core/
modules/ tracker/ tests/ src/ Kernel/ Migrate/ d7/ MigrateDrupalTestBase.php, line 42
Class
- MigrateDrupalTestBase
- Base class for Tracker Drupal 7 migration tests.
Namespace
Drupal\Tests\tracker\Kernel\Migrate\d7Code
protected function migrateUsers($include_pictures = TRUE) {
$migrations = [
'd7_user_role',
'd7_user',
];
if ($include_pictures) {
// Prepare to migrate user pictures as well.
$this->installEntitySchema('file');
$migrations = array_merge([
'user_picture_field',
'user_picture_field_instance',
], $migrations);
}
$this->executeMigrations($migrations);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.