$this->anyUser =
$this->
drupalCreateUser([]);
} /**
* Logs in users, tests help pages.
*/
public function testHelp() { // Log in the root user to ensure as many admin links appear as possible on
// the module overview pages.
$this->
drupalLogin($this->rootUser
);
$this->
verifyHelp();
// Log in the regular user.
$this->
drupalLogin($this->anyUser
);
$this->
verifyHelp(403
);
// Verify that introductory help text exists, goes for 100% module coverage.
$this->
drupalLogin($this->adminUser
);
$this->
drupalGet('admin/help'
);
$this->
assertSession()->
responseContains('For more information, refer to the help listed on this page or to the <a href="https://www.drupal.org/documentation">online documentation</a> and <a href="https://www.drupal.org/support">support</a> pages at <a href="https://www.drupal.org">drupal.org</a>.'
);
// Verify that hook_help() section title and description appear.