function ModuleConfigureRouteTest::assertModuleConfigureRoutesExist
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php \Drupal\KernelTests\Core\Extension\ModuleConfigureRouteTest::assertModuleConfigureRoutesExist()
- 10 core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php \Drupal\KernelTests\Core\Extension\ModuleConfigureRouteTest::assertModuleConfigureRoutesExist()
Asserts the configure routes of a module exist.
@internal
Parameters
string $module_name: The name of the module.
array $module_info: An array module info.
2 calls to ModuleConfigureRouteTest::assertModuleConfigureRoutesExist()
- ModuleConfigureRouteTest::doTestDeprecatedModuleConfigureRoutes in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ModuleConfigureRouteTest.php - Check the configure route for a single module.
- ModuleConfigureRouteTest::doTestModuleConfigureRoutes in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ModuleConfigureRouteTest.php - Checks the configure route for a single module.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ModuleConfigureRouteTest.php, line 113
Class
- ModuleConfigureRouteTest
- Tests the configure route for core modules.
Namespace
Drupal\KernelTests\Core\ExtensionCode
protected function assertModuleConfigureRoutesExist(string $module_name, array $module_info) : void {
$route = $this->routeProvider
->getRouteByName($module_info['configure']);
$this->assertNotEmpty($route, sprintf('The configure route for the "%s" module was found.', $module_name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.