You are here

public function MenuMultilingualTest::createCustomMenuItemLanguageNotSpecified in Menu Multilingual 8

Returns Custom Menu Items with language Not Specified.

1 call to MenuMultilingualTest::createCustomMenuItemLanguageNotSpecified()
MenuMultilingualTest::testCustomMenuItemLanguageNotSpecified in tests/src/Functional/MenuMultilingualTest.php
Test for Custom Menu Items with Language Not Specified.

File

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

Class

MenuMultilingualTest
Class MenuMultilingualTest.

Namespace

Drupal\Tests\menu_multilingual\Functional

Code

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