function MigrateCustomBlockContentTranslationTest::setUp

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

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockContentTranslationTest.php, line 31

Class

MigrateCustomBlockContentTranslationTest
Tests migration of i18n content block strings.

Namespace

Drupal\Tests\block_content\Kernel\Migrate\d7

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('block_content');
    $this->installConfig([
        'block_content',
    ]);
    $this->executeMigrations([
        'language',
        'd7_filter_format',
        'block_content_type',
        'block_content_body_field',
        'd7_custom_block',
        'd7_custom_block_translation',
    ]);
}

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