protected function MigrateDrupalTestBase::setUp in Drupal 10
Same name in this branch
- 10 core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase::setUp()
- 10 core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateDrupalTestBase.php \Drupal\Tests\tracker\Kernel\Migrate\d7\MigrateDrupalTestBase::setUp()
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase::setUp()
- 9 core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase::setUp()
13 methods override MigrateDrupalTestBase::setUp()
- DestinationCategoryTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ Plugin/ migrate/ DestinationCategoryTest.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 - MigrateDrupal7TestBase::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d7/ MigrateDrupal7TestBase.php
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\KernelCode
protected function setUp() : void {
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',
]);
}