public function MenuTest::testMenuLinkDescription in GraphQL 8.4
@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\Menu\MenuLink\MenuLinkDescription::resolve
File
- tests/
src/ Kernel/ DataProducer/ MenuTest.php, line 165
Class
- MenuTest
- Data producers Menu test class.
Namespace
Drupal\Tests\graphql\Kernel\DataProducerCode
public function testMenuLinkDescription() : void {
foreach ($this->linkTree as $link_tree) {
$result = $this
->executeDataProducer('menu_link_description', [
'link' => $link_tree->link,
]);
$this
->assertEquals($link_tree->link
->getDescription(), $result);
}
}