Index: modules/help/help.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/help/help.test,v
retrieving revision 1.4
diff -u -r1.4 help.test
--- modules/help/help.test	11 Dec 2008 20:35:37 -0000	1.4
+++ modules/help/help.test	4 Feb 2009 19:03:50 -0000
@@ -17,11 +17,9 @@
    * Enable modules and create users with specific permissions.
    */
   function setUp() {
-    parent::setUp();
+    parent::setUp('blog', 'poll', 'help_test');
 
     // Loading these (and other?) modules will result in failures?
-//    $this->drupalModuleEnable('blog');
-//    $this->drupalModuleEnable('poll');
     $this->getModuleList();
 
     // Create users.
@@ -40,6 +38,23 @@
     // Login the regular user.
     $this->drupalLogin($this->any_user);
     $this->verifyHelp(403);
+
+    // Check for css on admin/help.
+    $this->drupalLogin($this->big_user);
+    $this->drupalGet('admin/help');
+    $this->assertRaw(drupal_get_path('module', 'help') . '/help.css', t('CSS correctly added to admin/help'));
+
+    // Verify that introductory help text exists, goes for 100% module coverage
+    $this->assertRaw(t('This guide provides context sensitive help on the use and configuration of <a href="@drupal">Drupal</a> and its modules',
+                     array('@drupal' => 'http://drupal.org')), t('Help intro text correctly appears.'));
+
+    // Verify that help topics text appears.
+    $this->assertRaw('<h2>' . t('Help topics') . '</h2><p>' . t('Help is available on the following items:') . '</p>', t('Help topics text correctly appears.'));
+
+    // Make sure links are properly added for modules implementing hook_help().
+    foreach ($this->modules as $module => $name) {
+      $this->assertLink($name, 0, t('Link properly added to @name (admin/help/@module)', array('@module' => $module, '@name' => $name)));
+    } 
   }
 
   /**
@@ -55,10 +70,6 @@
       $this->drupalGet('admin/help/' . $module);
       $this->assertResponse($response);
       if ($response == 200) {
-        // NOTE: The asserts fail on blog and poll because the get returns the 'admin/help' node instead of the indicated node???
-//        if ($module == 'blog' || $module == 'poll') {
-//          continue;
-//        }
         $this->assertTitle($name . ' | Drupal', t('[' . $module . '] Title was displayed'));
         $this->assertRaw('<h2>' . t($name) . '</h2>', t('[' . $module . '] Heading was displayed'));
         $this->assertText(t('Home ' . $crumb . ' Administer ' . $crumb . ' Help'), t('[' . $module . '] Breadcrumbs were displayed'));
Index: modules/simpletest/tests/help_test.info
===================================================================
RCS file: modules/simpletest/tests/help_test.info
diff -N modules/simpletest/tests/help_test.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/simpletest/tests/help_test.info	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,8 @@
+; $Id: session_test.info,v 1.1 2008/08/16 21:11:02 dries Exp $
+name = "Help Test"
+description = "Support module for session data testing."
+package = Testing
+version = VERSION
+core = 7.x
+files[] = help_test.module
+hidden = TRUE
Index: modules/simpletest/tests/help_test.module
===================================================================
RCS file: modules/simpletest/tests/help_test.module
diff -N modules/simpletest/tests/help_test.module
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/simpletest/tests/help_test.module	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,19 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Dummy module implementing hook help to test help text availablity.
+ */
+
+/**
+ * Implementation of hook_help
+ */
+function help_test_help($path, $arg) {
+  switch ($path) {
+    case 'admin/help#help_test':
+      return '<p>'. t('Dummy module implementing hook help to test help text availablity.') .'</p>';
+    case 'admin/help/help_test':
+      return '<p>'. t('Dummy module implementing hook help to test help text availablity.') .'</p>';
+  }
+}
