function MigrateTrackerNodeTest::setUp

Same name in other branches
  1. 8.9.x core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php \Drupal\Tests\tracker\Kernel\Migrate\d7\MigrateTrackerNodeTest::setUp()
  2. 10 core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php \Drupal\Tests\tracker\Kernel\Migrate\d7\MigrateTrackerNodeTest::setUp()
  3. 11.x core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php \Drupal\Tests\tracker\Kernel\Migrate\d7\MigrateTrackerNodeTest::setUp()

Overrides MigrateDrupalTestBase::setUp

File

core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php, line 27

Class

MigrateTrackerNodeTest
Tests migration of tracker_node.

Namespace

Drupal\Tests\tracker\Kernel\Migrate\d7

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('node');
    $this->installConfig(static::$modules);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->installSchema('tracker', [
        'tracker_node',
        'tracker_user',
    ]);
    $this->migrateContentTypes();
    $this->migrateUsers(FALSE);
    $this->executeMigrations([
        'd7_node',
        'd7_tracker_node',
    ]);
}

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