public function NoHelpTest::testMainPageNoHelp

Ensures modules not implementing help do not appear on admin/help.

File

drupal/core/modules/help/lib/Drupal/help/Tests/NoHelpTest.php, line 47
Definition of Drupal\help\Tests\NoHelpTest.

Class

NoHelpTest
Tests a module without help to verify it is not listed in the help page.

Namespace

Drupal\help\Tests

Code

public function testMainPageNoHelp() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet('admin/help');
  $this
    ->assertNoText('Hook menu tests', 'Making sure the test module menu_test does not display a help link in admin/help');
}