Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / node / tests / src / Kernel / Migrate / MigrateNodeStubTest.php
1 <?php
2
3 namespace Drupal\Tests\node\Kernel\Migrate;
4
5 use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
6 use Drupal\migrate_drupal\Tests\StubTestTrait;
7 use Drupal\node\Entity\NodeType;
8
9 /**
10  * Test stub creation for nodes.
11  *
12  * @group node
13  */
14 class MigrateNodeStubTest extends MigrateDrupalTestBase {
15
16   use StubTestTrait;
17
18   /**
19    * {@inheritdoc}
20    */
21   public static $modules = ['node'];
22
23   /**
24    * {@inheritdoc}
25    */
26   protected function setUp() {
27     parent::setUp();
28     $this->installEntitySchema('node');
29     // Need at least one node type present.
30     NodeType::create([
31       'type' => 'testnodetype',
32       'name' => 'Test node type',
33     ])->save();
34   }
35
36   /**
37    * Tests creation of node stubs.
38    */
39   public function testStub() {
40     $this->performStubTest('node');
41   }
42
43 }