Verifies the logged in user has access to the various help nodes.
integer $response: An HTTP response code.
protected function verifyHelp($response = 200) {
foreach ($this
->getModuleList() as $module => $name) {
// View module help node.
$this
->drupalGet('admin/help/' . $module);
$this
->assertResponse($response);
if ($response == 200) {
$this
->assertTitle($name . ' | Drupal', format_string('%module title was displayed', array(
'%module' => $module,
)));
$this
->assertRaw('<h1 class="page-title">' . t($name) . '</h1>', format_string('%module heading was displayed', array(
'%module' => $module,
)));
}
}
}