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	16 Apr 2009 07:42:14 -0000
@@ -82,3 +82,33 @@ class HelpTestCase extends DrupalWebTest
     }
   }
 }
+
+class NoHelpTestCase extends DrupalWebTestCase {
+  protected $big_user;
+
+  function getInfo() {
+    return array(
+      'name' => t('Tests modules with no help'),
+      'description' => t('Verify behavior when modules do not provide help.'),
+      'group' => t('Help'),
+    );
+  }
+
+  function setUp() {
+    // Use one of the mock modules that do not implement hook_help. 
+    // Note that this test will fail if hook_help is implemented in menu_test.module.
+    parent::setUp('menu_test');
+    $this->big_user = $this->drupalCreateUser(array('access administration pages')); 
+  }
+
+  /**
+   * Test that links to modules with no implementation of hook_help does not 
+   * appear in the admin/help page.
+   */
+  function testMainPageNoHelp() {
+    $this->drupalLogin($this->big_user);
+
+    $this->drupalGet('admin/help');
+    $this->assertNoText('Hook menu tests', t('Making sure the mock module menu_test does not display a help link in admin/help'));    
+  }
+}
