protected function MigrateNodeStubTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest::setUp()
- 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\MigrateCode
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();
}