protected function MigrateDrupalTestBase::migrateUsers in Drupal 10
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 40
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);
}