function MigrateNodeRevisionTest::setUp

Same name in this branch
  1. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeRevisionTest::setUp()
Same name in other branches
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeRevisionTest::setUp()
  2. 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeRevisionTest::setUp()
  3. 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeRevisionTest::setUp()
  4. 10 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeRevisionTest::setUp()
  5. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeRevisionTest::setUp()
  6. 11.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeRevisionTest::setUp()

Overrides MigrateNodeTestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php, line 29

Class

MigrateNodeRevisionTest
Node content revisions migration.

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

protected function setUp() {
    parent::setUp();
    $this->executeMigrations([
        'd6_node',
        'd6_node_revision',
    ]);
    $this->nodeStorage = $this->container
        ->get('entity_type.manager')
        ->getStorage('node');
}

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