You are here

public function MenuTest::testMenuLinkExpanded in GraphQL 8.4

@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\Menu\MenuLink\MenuLinkExpanded::resolve

File

tests/src/Kernel/DataProducer/MenuTest.php, line 178

Class

MenuTest
Data producers Menu test class.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer

Code

public function testMenuLinkExpanded() : void {
  foreach ($this->linkTree as $link_tree) {
    $result = $this
      ->executeDataProducer('menu_link_expanded', [
      'link' => $link_tree->link,
    ]);
    $this
      ->assertEquals($link_tree->link
      ->isExpanded(), $result);
  }
}