? sites/all/modules/cck
? sites/all/modules/devel
? sites/default/settings.php
? sites/default/files/.htaccess
? sites/default/files/simpletest
? sites/default/files/simpletest555420
? sites/default/files/simpletest847386
Index: modules/help/help.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/help/help.test,v
retrieving revision 1.8
diff -u -p -r1.8 help.test
--- modules/help/help.test	13 Jul 2009 21:51:10 -0000	1.8
+++ modules/help/help.test	19 Jul 2009 13:00:31 -0000
@@ -70,6 +70,34 @@ class HelpTestCase extends DrupalWebTest
       }
     }
   }
+}
+
+class NoHelpTestCase extends DrupalWebTestCase {
+  protected $big_user;
+
+  public static function getInfo() {
+    return array(
+      'name' => 'No help',
+      'description' => 'Verify no help is displayed for modules not providing any help.',
+      'group' => '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'));
+  }
 
   /**
    * Get list of enabled modules.
