summaryrefslogtreecommitdiff
path: root/modules/help
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-12 08:39:40 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-12 08:39:40 +0000
commit3d64cb5ecae7c0d093e1343f87901769dc7d819e (patch)
tree765b3104ae2bbdf96ac677f8deab9b5457ffa4bf /modules/help
parentbfdea95337376b00e60049b640c076e8ab32293f (diff)
downloadbrdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.gz
brdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.bz2
- Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my.
Diffstat (limited to 'modules/help')
-rw-r--r--modules/help/help.test21
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'));
+ }
}
}
}