protected function HelpTest::getModuleList in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/help/src/Tests/HelpTest.php \Drupal\help\Tests\HelpTest::getModuleList()
Gets the list of enabled modules that implement hook_help().
Return value
array A list of enabled modules.
3 calls to HelpTest::getModuleList()
- HelpTest::setUp in core/
modules/ help/ src/ Tests/ HelpTest.php - Sets up a Drupal site for running functional and integration tests.
- HelpTest::testHelp in core/
modules/ help/ src/ Tests/ HelpTest.php - Logs in users, creates dblog events, and tests dblog functionality.
- HelpTest::verifyHelp in core/
modules/ help/ src/ Tests/ HelpTest.php - Verifies the logged in user has access to the various help nodes.
File
- core/
modules/ help/ src/ Tests/ HelpTest.php, line 136 - Contains \Drupal\help\Tests\HelpTest.
Class
- HelpTest
- Verify help display and user access to help based on permissions.
Namespace
Drupal\help\TestsCode
protected function getModuleList() {
$modules = array();
$module_data = system_rebuild_module_data();
foreach (\Drupal::moduleHandler()
->getImplementations('help') as $module) {
$modules[$module] = $module_data[$module]->info['name'];
}
return $modules;
}