src/DrupalExtension/Context/MenuContext.php
public function assertMenuStructure($menu_name, TableNode $table) {
    try {
      $this->menuLinks = array_merge($this->menuLinks, $this->getCore()->createMenuStructure($menu_name, $table->getColumnsHash()));
    }
    catch (\InvalidArgumentException $e) {
      throw new ExpectationException($e->getMessage(), $this->getSession());
    }

  }
public function assertMenuStructure($menu_name, TableNode $table) {
    try {
      $this->menuLinks = array_merge($this->menuLinks, $this->getCore()->createMenuStructure($menu_name, $table->getColumnsHash()));
    }
    catch (\InvalidArgumentException $e) {
      throw new ExpectationException($e->getMessage(), $this->getSession());
    }

  }
public function assertMenuStructure ( $ menu_name , TableNode $ table ) { try { $ this -> menuLinks = array_merge ( $ this -> menuLinks , $ this -> getCore ( ) -> createMenuStructure ( $ menu_name , $ table -> getColumnsHash ( ) ) ) ; } catch ( \ InvalidArgumentException $ e ) { throw new ExpectationException ( $ e -> getMessage ( ) , $ this -> getSession ( ) ) ; } }
Create menu structure my adding menu links.

@param string $menu_name
Menu machine name.
@param \Behat\Gherkin\Node\TableNode $table
Table representing the menu structure to be specified as follows:
| title   | uri        | parent |
| Link 1  | internal:/ |        |
| Link 2  | internal:/ | Link 1 |
| Link 3  | internal:/ | Link 1 |.

@throws \Behat\Mink\Exception\ExpectationException
Throws exception if menu not found.

@Given the following :menu_name menu structure:
Create menu structure my adding menu links .