3 namespace Drupal\Tests\node\Kernel\Migrate\d6;
5 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
6 use Drupal\user\Entity\User;
9 * Base class for Node migration tests.
11 abstract class MigrateNodeTestBase extends MigrateDrupal6TestBase {
16 protected function setUp() {
19 $this->installEntitySchema('node');
20 $this->installConfig(['node']);
21 $this->installSchema('node', ['node_access']);
22 $this->installSchema('system', ['sequences']);
24 // Create a new user which needs to have UID 1, because that is expected by
25 // the assertions from
26 // \Drupal\migrate_drupal\Tests\d6\MigrateNodeRevisionTest.
29 'name' => $this->randomMachineName(),
31 ])->enforceIsNew()->save();
33 $this->migrateUsers(FALSE);
34 $this->migrateFields();
35 $this->executeMigration('d6_node_settings');