You are here

protected function MigrateNodeStubTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Tests/Migrate/MigrateNodeStubTest.php \Drupal\node\Tests\Migrate\MigrateNodeStubTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides MigrateDrupalTestBase::setUp

File

core/modules/node/src/Tests/Migrate/MigrateNodeStubTest.php, line 31
Contains \Drupal\node\Tests\Migrate\MigrateNodeStubTest.

Class

MigrateNodeStubTest
Test stub creation for nodes.

Namespace

Drupal\node\Tests\Migrate

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');

  // Need at least one node type present.
  NodeType::create([
    'type' => 'testnodetype',
    'name' => 'Test node type',
  ])
    ->save();
}