function NodeTypeExampleTest::providerMenuLinks
Same name in other branches
- 4.0.x modules/node_type_example/tests/src/Functional/NodeTypeExampleTest.php \Drupal\Tests\node_type_example\Functional\NodeTypeExampleTest::providerMenuLinks()
Data provider for testing menu links.
Return value
array Array of page -> link relationships to check for.
- The key is the path to the page where our link should appear.
- The value is the link that should appear on that page.
1 call to NodeTypeExampleTest::providerMenuLinks()
- NodeTypeExampleTest::testNodeTypeExample in modules/
node_type_example/ tests/ src/ Functional/ NodeTypeExampleTest.php - Verify and validate that default menu links were loaded for this module.
File
-
modules/
node_type_example/ tests/ src/ Functional/ NodeTypeExampleTest.php, line 51
Class
- NodeTypeExampleTest
- Test that our content types are successfully created.
Namespace
Drupal\Tests\node_type_example\FunctionalCode
protected function providerMenuLinks() {
return [
'' => '/examples/node-type-example',
];
}