function NoHelpTestCase::testMainPageNoHelp

7.x help.test NoHelpTestCase::testMainPageNoHelp()

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

File

drupal-7.x/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');
}