You are here

protected function MigrateBlockContentTranslationTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::setUp()
  2. 8 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::setUp()
Same name and namespace in other branches
  1. 9 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php, line 39

Class

MigrateBlockContentTranslationTest
Tests migration of i18n block translations.

Namespace

Drupal\Tests\block\Kernel\Migrate\d7

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('block_content');
  $this
    ->installConfig([
    'block',
  ]);
  $this
    ->installConfig([
    'block_content',
  ]);
  $this
    ->executeMigrations([
    'language',
    'd7_filter_format',
    'block_content_type',
    'block_content_body_field',
    'd7_custom_block',
    'd7_user_role',
    'd7_block',
    'd7_block_translation',
  ]);
  block_rebuild();
}