function MigrateBundleTest::setUp

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php \Drupal\Tests\migrate\Kernel\MigrateBundleTest::setUp()
  2. 8.9.x core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php \Drupal\Tests\migrate\Kernel\MigrateBundleTest::setUp()
  3. 11.x core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php \Drupal\Tests\migrate\Kernel\MigrateBundleTest::setUp()

Overrides MigrateTestBase::setUp

File

core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php, line 26

Class

MigrateBundleTest
Tests setting of bundles on content entity migrations.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->installEntitySchema('taxonomy_term');
    $this->installConfig([
        'taxonomy',
    ]);
    // Set up two vocabularies (taxonomy bundles).
    Vocabulary::create([
        'vid' => 'tags',
        'name' => 'Tags',
    ]);
    Vocabulary::create([
        'vid' => 'categories',
        'name' => 'Categories',
    ]);
}

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