function MigrateLanguageContentMenuSettingsTest::testLanguageContentMenu
Same name in other branches
- 9 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentMenuSettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentMenuSettingsTest::testLanguageContentMenu()
- 11.x core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentMenuSettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentMenuSettingsTest::testLanguageContentMenu()
Tests migration of menu translation ability.
File
-
core/
modules/ language/ tests/ src/ Kernel/ Migrate/ d7/ MigrateLanguageContentMenuSettingsTest.php, line 44
Class
- MigrateLanguageContentMenuSettingsTest
- Tests migration of i18n_menu settings.
Namespace
Drupal\Tests\language\Kernel\Migrate\d7Code
public function testLanguageContentMenu() : void {
$config = ContentLanguageSettings::load('menu_link_content.menu_link_content');
$this->assertInstanceOf(ContentLanguageSettings::class, $config);
$this->assertSame('menu_link_content', $config->getTargetEntityTypeId());
$this->assertSame('menu_link_content', $config->getTargetBundle());
$this->assertSame(LanguageInterface::LANGCODE_SITE_DEFAULT, $config->getDefaultLangcode());
$this->assertTrue($config->isLanguageAlterable());
$settings = [
'enabled' => TRUE,
'bundle_settings' => [
'untranslatable_fields_hide' => '0',
],
];
$this->assertSame($settings, $config->getThirdPartySettings('content_translation'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.