function DbtngExampleTest::providerMenuLinks
Same name in other branches
- 4.0.x modules/dbtng_example/tests/src/Functional/DbtngExampleTest.php \Drupal\Tests\dbtng_example\Functional\DbtngExampleTest::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 an array of links that should appear on that page.
1 call to DbtngExampleTest::providerMenuLinks()
- DbtngExampleTest::testDbtngExample in modules/
dbtng_example/ tests/ src/ Functional/ DbtngExampleTest.php - Regression test for dbtng_example.
File
-
modules/
dbtng_example/ tests/ src/ Functional/ DbtngExampleTest.php, line 76
Class
- DbtngExampleTest
- Tests for the dbtng_example module.
Namespace
Drupal\Tests\dbtng_example\FunctionalCode
protected function providerMenuLinks() {
return [
'' => [
'/examples/dbtng-example',
],
'/examples/dbtng-example' => [
'/examples/dbtng-example/add',
'/examples/dbtng-example/update',
'/examples/dbtng-example/advanced',
],
];
}