protected function 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 drupal/core/modules/help/lib/Drupal/help/Tests/HelpTest.php
Sets up a Drupal site for running functional and integration tests.
HelpTest::testHelp in drupal/core/modules/help/lib/Drupal/help/Tests/HelpTest.php
Logs in users, creates dblog events, and tests dblog functionality.
HelpTest::verifyHelp in drupal/core/modules/help/lib/Drupal/help/Tests/HelpTest.php
Verifies the logged in user has access to the various help nodes.

File

drupal/core/modules/help/lib/Drupal/help/Tests/HelpTest.php, line 108
Definition of Drupal\help\Tests\HelpTest.

Class

HelpTest
Tests help display and user access for all modules implementing help.

Namespace

Drupal\help\Tests

Code

protected function getModuleList() {
  $modules = array();
  $module_data = system_rebuild_module_data();
  foreach (module_implements('help') as $module) {
    $modules[$module] = $module_data[$module]->info['name'];
  }
  return $modules;
}