You are here

public function MenuMultilingualTest::createCustomMenuItemLanguageNotApplicable in Menu Multilingual 8

Returns Custom Menu Items with language Not Applicable.

1 call to MenuMultilingualTest::createCustomMenuItemLanguageNotApplicable()
MenuMultilingualTest::testCustomMenuItemLanguageNotApplicable in tests/src/Functional/MenuMultilingualTest.php
Test for Custom Menu Items with Language Not Applicable.

File

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

Class

MenuMultilingualTest
Class MenuMultilingualTest.

Namespace

Drupal\Tests\menu_multilingual\Functional

Code

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