function MigrateDrupal7TestBase::migrateContentTypes

Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateContentTypes()
  2. 10 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateContentTypes()
  3. 11.x core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateContentTypes()

Migrates node types.

16 calls to MigrateDrupal7TestBase::migrateContentTypes()
LegacyMigrateUrlAliasTest::setUp in core/modules/path/tests/src/Kernel/Migrate/d7/LegacyMigrateUrlAliasTest.php
MigrateBookTest::setUp in core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php
MigrateCommentEntityDisplayTest::setUp in core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityDisplayTest.php
MigrateCommentEntityFormDisplayTest::setUp in core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php
MigrateCommentFieldInstanceTest::setUp in core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php

... See full list

File

core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php, line 68

Class

MigrateDrupal7TestBase
Base class for Drupal 7 migration tests.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d7

Code

protected function migrateContentTypes() {
    $this->installConfig([
        'node',
    ]);
    $this->installEntitySchema('node');
    $this->executeMigration('d7_node_type');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.