diff options
Diffstat (limited to 'modules/help')
-rw-r--r-- | modules/help/help.test | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/modules/help/help.test b/modules/help/help.test index 089bd4862..9bdd41d19 100644 --- a/modules/help/help.test +++ b/modules/help/help.test @@ -54,14 +54,19 @@ class HelpTestCase extends DrupalWebTestCase { // View module help node. $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')); + if (drupal_function_exists($module . '_help')) { + // View module help node. + $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')); + } } } } |