You are here

public function MenuTest::testMenuLinkUrl in GraphQL 8.4

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

File

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

Class

MenuTest
Data producers Menu test class.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer

Code

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