You are here

protected function MenuLinkFieldKernelTest::enableMultilingual in Menu Link (Field) 8

2 calls to MenuLinkFieldKernelTest::enableMultilingual()
MenuLinkFieldKernelTest::testTitleAndDescriptionTranslation in tests/src/Kernel/MenuLinkFieldKernelTest.php
Test the title/description translation.
MenuLinkFieldKernelTest::testTranslationWithMultipleMenuItems in tests/src/Kernel/MenuLinkFieldKernelTest.php
Tests the capability to provide multiple menu links and translate them.

File

tests/src/Kernel/MenuLinkFieldKernelTest.php, line 60

Class

MenuLinkFieldKernelTest
Tests the menu link field.

Namespace

Drupal\Tests\menu_link\Kernel

Code

protected function enableMultilingual() : void {
  ConfigurableLanguage::createFromLangcode('es')
    ->save();
  $this->container
    ->get('kernel')
    ->rebuildContainer();
}