function MigrateBlockContentTranslationTest::setUp

Same name in this branch
  1. 11.x core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::setUp()
Same name in other branches
  1. 9 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::setUp()
  2. 9 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::setUp()
  3. 8.9.x core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::setUp()
  4. 8.9.x core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::setUp()
  5. 10 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::setUp()
  6. 10 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::setUp()

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php, line 34

Class

MigrateBlockContentTranslationTest
Tests migration of i18n block translations.

Namespace

Drupal\Tests\block\Kernel\Migrate\d6

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('block_content');
    $this->installEntitySchema('path_alias');
    $this->installConfig([
        'block',
    ]);
    $this->installConfig([
        'block_content',
    ]);
    $this->container
        ->get('theme_installer')
        ->install([
        'stark',
    ]);
    $this->executeMigrations([
        'language',
        'd6_filter_format',
        'block_content_type',
        'block_content_body_field',
        'd6_custom_block',
        'd6_user_role',
        'd6_block',
        'd6_block_translation',
    ]);
    block_rebuild();
}

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