You are here

function NoHelpTestCase::testMainPageNoHelp in Drupal 7

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

File

modules/help/help.test, line 131
Tests for help.module.

Class

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

Code

function testMainPageNoHelp() {
  $this
    ->drupalLogin($this->big_user);
  $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');
}