You are here

protected function MigrateDrupalTestBase::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase::setUp()
  2. 10 core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase::setUp()

Overrides MigrateTestBase::setUp

13 calls to MigrateDrupalTestBase::setUp()
DestinationCategoryTest::setUp in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
MigrateAggregatorStubTest::setUp in core/modules/aggregator/tests/src/Kernel/Migrate/MigrateAggregatorStubTest.php
MigrateBlockContentStubTest::setUp in core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php
MigrateCommentStubTest::setUp in core/modules/comment/tests/src/Kernel/Migrate/MigrateCommentStubTest.php
MigrateDrupal6TestBase::setUp in core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php

... See full list

13 methods override MigrateDrupalTestBase::setUp()
DestinationCategoryTest::setUp in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
MigrateAggregatorStubTest::setUp in core/modules/aggregator/tests/src/Kernel/Migrate/MigrateAggregatorStubTest.php
MigrateBlockContentStubTest::setUp in core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php
MigrateCommentStubTest::setUp in core/modules/comment/tests/src/Kernel/Migrate/MigrateCommentStubTest.php
MigrateDrupal6TestBase::setUp in core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php

... See full list

File

core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php, line 30

Class

MigrateDrupalTestBase
Base class for Drupal migration tests.

Namespace

Drupal\Tests\migrate_drupal\Kernel

Code

protected function setUp() {
  parent::setUp();
  $module_handler = \Drupal::moduleHandler();
  if ($module_handler
    ->moduleExists('node')) {
    $this
      ->installEntitySchema('node');
  }
  if ($module_handler
    ->moduleExists('comment')) {
    $this
      ->installEntitySchema('comment');
  }
  if ($module_handler
    ->moduleExists('taxonomy')) {
    $this
      ->installEntitySchema('taxonomy_term');
  }
  if ($module_handler
    ->moduleExists('user')) {
    $this
      ->installEntitySchema('user');
  }
  $this
    ->installConfig([
    'migrate_drupal',
    'system',
  ]);
}