Index: modules/help/help.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/help/help.test,v
retrieving revision 1.6
diff -u -p -r1.6 help.test
--- modules/help/help.test	31 Mar 2009 01:49:52 -0000	1.6
+++ modules/help/help.test	8 Jun 2009 20:46:34 -0000
@@ -82,3 +82,31 @@ class HelpTestCase extends DrupalWebTest
     }
   }
 }
+
+class NoHelpTestCase extends DrupalWebTestCase {
+  protected $big_user;
+
+  public static function getInfo() {
+    return array(
+      'name' => t('No help'),
+      'description' => t('Verify no help is displayed for modules not providing any help.'),
+      'group' => t('Help'),
+    );
+  }
+
+  function setUp() {
+    // Use one of the test modules that do not implement hook_help.
+    parent::setUp('menu_test');
+    $this->big_user = $this->drupalCreateUser(array('access administration pages'));
+  }
+
+  /**
+   * Ensure modules not implementing help do not appear on admin/help.
+   */
+  function testMainPageNoHelp() {
+    $this->drupalLogin($this->big_user);
+
+    $this->drupalGet('admin/help');
+    $this->assertNoText('Hook menu tests', t('Making sure the test module menu_test does not display a help link in admin/help'));
+  }
+}
