function MigrateDrupal6TestBase::migrateUsers

Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateUsers()
  2. 10 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateUsers()
  3. 11.x core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateUsers()

Executes all user migrations.

Parameters

bool $include_pictures: If TRUE, migrates user pictures.

10 calls to MigrateDrupal6TestBase::migrateUsers()
LegacyMigrateUrlAliasTest::setUp in core/modules/path/tests/src/Kernel/Migrate/d6/LegacyMigrateUrlAliasTest.php
MigrateDrupal6TestBase::migrateContent in core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php
Executes all content migrations.
MigrateNodeTestBase::setUp in core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTestBase.php
MigrateTermNodeComplete::setUp in core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php
MigrateTermNodeTranslationTest::setUp in core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTranslationTest.php

... See full list

File

core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php, line 53

Class

MigrateDrupal6TestBase
Base class for Drupal 6 migration tests.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d6

Code

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',
        ]);
    }
    $this->executeMigration('d6_user');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.