You are here

public function MenuMultilingualTest::createCustomMenuItemUntranslated in Menu Multilingual 8

Returns untranslated Custom Menu Items.

1 call to MenuMultilingualTest::createCustomMenuItemUntranslated()
MenuMultilingualTest::testCustomMenuItemUntranslated in tests/src/Functional/MenuMultilingualTest.php
Test for untranslated Custom Menu Items.

File

tests/src/Functional/MenuMultilingualTest.php, line 600

Class

MenuMultilingualTest
Class MenuMultilingualTest.

Namespace

Drupal\Tests\menu_multilingual\Functional

Code

public function createCustomMenuItemUntranslated(string $title, int $nid) {
  $edit = [
    'title[0][value]' => $title . ', English menu item',
    'link[0][uri]' => '/node/' . $nid,
    'langcode[0][value]' => 'en',
  ];
  $this
    ->drupalGet('admin/structure/menu/manage/main/add');
  $this
    ->submitForm($edit, 'Save');
}