protected function MigrateNodeStubTest::setUp in Drupal 8
Same name and namespace in other branches
- 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() {
parent::setUp();
$this
->installEntitySchema('node');
// Need at least one node type present.
NodeType::create([
'type' => 'testnodetype',
'name' => 'Test node type',
])
->save();
}