function MigrateNodeStubTest::setUp
Overrides MigrateDrupalTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ Kernel/ Migrate/ MigrateNodeStubTest.php, line 28
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.