3 namespace Drupal\Tests\block\Kernel\Migrate\d6;
5 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
8 * Tests migration of i18n block translations.
10 * @group migrate_drupal_6
12 class MigrateBlockContentTranslationTest extends MigrateDrupal6TestBase {
17 public static $modules = [
25 'content_translation',
29 // Required for translation migrations.
30 'migrate_drupal_multilingual',
36 protected function setUp() {
38 $this->installConfig(['block']);
39 $this->installConfig(['block_content']);
40 $this->installEntitySchema('block_content');
42 $this->executeMigrations([
45 'block_content_body_field',
49 'd6_block_translation',
55 * Tests the migration of block title translation.
57 public function testBlockContentTranslation() {
58 /** @var \Drupal\language\ConfigurableLanguageManagerInterface $language_manager */
59 $language_manager = $this->container->get('language_manager');
61 $config = $language_manager->getLanguageConfigOverride('zu', 'block.block.user_1');
62 $this->assertSame('zu - Navigation', $config->get('settings.label'));