Chris@0: helpBlock = $this->placeBlock('help_block'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Logs in users, tests help pages. Chris@0: */ Chris@0: public function testHelp() { Chris@0: $this->drupalGet('help_page_test/has_help'); Chris@0: $this->assertText(t('I have help!')); Chris@0: $this->assertText($this->helpBlock->label()); Chris@0: Chris@0: $this->drupalGet('help_page_test/no_help'); Chris@0: // The help block should not appear when there is no help. Chris@0: $this->assertNoText($this->helpBlock->label()); Chris@0: Chris@0: // Ensure that if two hook_help() implementations both return a render array Chris@0: // the output is as expected. Chris@0: $this->drupalGet('help_page_test/test_array'); Chris@0: $this->assertText('Help text from more_help_page_test_help module.'); Chris@0: $this->assertText('Help text from help_page_test_help module.'); Chris@0: } Chris@0: Chris@0: }