function MigrateBlockContentTranslationTest::testBlockContentTranslation

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::testBlockContentTranslation()
Same name in other branches
  1. 9 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  2. 9 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  3. 8.9.x core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  4. 8.9.x core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  5. 10 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  6. 10 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::testBlockContentTranslation()

Tests the migration of block title translation.

File

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

Class

MigrateBlockContentTranslationTest
Tests migration of i18n block translations.

Namespace

Drupal\Tests\block\Kernel\Migrate\d6

Code

public function testBlockContentTranslation() : void {
    
    /** @var \Drupal\language\ConfigurableLanguageManagerInterface $language_manager */
    $language_manager = $this->container
        ->get('language_manager');
    $config = $language_manager->getLanguageConfigOverride('zu', 'block.block.user_1');
    $this->assertSame('zu - Navigation', $config->get('settings.label'));
}

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