You are here

public function MigrateBlockContentTranslationTest::testBlockContentTranslation in Drupal 10

Same name in this branch
  1. 10 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  2. 10 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::testBlockContentTranslation()
Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockContentTranslationTest::testBlockContentTranslation()
  2. 9 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/d7/MigrateBlockContentTranslationTest.php, line 60

Class

MigrateBlockContentTranslationTest
Tests migration of i18n block translations.

Namespace

Drupal\Tests\block\Kernel\Migrate\d7

Code

public function testBlockContentTranslation() {

  /** @var \Drupal\language\ConfigurableLanguageManagerInterface $language_manager */
  $language_manager = $this->container
    ->get('language_manager');
  $config = $language_manager
    ->getLanguageConfigOverride('fr', 'block.block.bartik_user_login');
  $this
    ->assertSame('fr - User login title', $config
    ->get('settings.label'));
}