You are here

public function MenuTest::testMenuTreeSubtree in GraphQL 8.4

@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\Menu\MenuTree\MenuTreeSubtree::resolve

File

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

Class

MenuTest
Data producers Menu test class.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer

Code

public function testMenuTreeSubtree() : void {
  foreach ($this->linkTree as $link_tree) {
    $result = $this
      ->executeDataProducer('menu_tree_subtree', [
      'element' => $link_tree,
    ]);
    $this
      ->assertEquals($link_tree->subtree, $result);
  }
}