3 namespace Drupal\Tests\node\Kernel\Migrate;
5 use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
6 use Drupal\migrate_drupal\Tests\StubTestTrait;
7 use Drupal\node\Entity\NodeType;
10 * Test stub creation for nodes.
14 class MigrateNodeStubTest extends MigrateDrupalTestBase {
21 public static $modules = ['node'];
26 protected function setUp() {
28 $this->installEntitySchema('node');
29 // Need at least one node type present.
31 'type' => 'testnodetype',
32 'name' => 'Test node type',
37 * Tests creation of node stubs.
39 public function testStub() {
40 $this->performStubTest('node');