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. 8.9.x 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.

13 calls to MigrateDrupal7TestBase::migrateContentTypes()
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
MigrateDrupal7TestBase::migrateContent in core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php
Executes all content migrations.

... See full list

File

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

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.