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