function MigrateNodeStubTest::setUp
Same name in other branches
- 8.9.x core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest::setUp()
- 10 core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php \Drupal\Tests\node\Kernel\Migrate\MigrateNodeStubTest::setUp()
- 11.x 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.