protected function DbtngExampleTest::providerMenuLinks in Examples for Developers 8
Same name and namespace in other branches
- 3.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 dbtng_example/
tests/ src/ Functional/ DbtngExampleTest.php - Regression test for dbtng_example.
File
- 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',
],
];
}