You are here

protected function MigrateNodeStubTest::setUp in Drupal 10

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

Overrides MigrateDrupalTestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php, line 26

Class

MigrateNodeStubTest
Test stub creation for nodes.

Namespace

Drupal\Tests\node\Kernel\Migrate

Code

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

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