From 3d64cb5ecae7c0d093e1343f87901769dc7d819e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 12 Jun 2009 08:39:40 +0000 Subject: - Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my. --- modules/help/help.test | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'modules/help') 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('

' . t($name) . '

', 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('

' . t($name) . '

', t('[' . $module . '] Heading was displayed')); + $this->assertText(t('Home ' . $crumb . ' Administer ' . $crumb . ' Help'), t('[' . $module . '] Breadcrumbs were displayed')); + } } } } -- cgit v1.2.3