Verifies the display of a forum page.
$forum: A row from the taxonomy_term_data table in an array.
$parent: (optional) An array representing the forum's parent.
private function verifyForumView($forum, $parent = NULL) {
// View forum page.
$this
->drupalGet('forum/' . $forum['tid']);
$this
->assertResponse(200);
$this
->assertTitle($forum['name'] . ' | Drupal', 'Forum name was displayed');
$breadcrumb = array(
l(t('Home'), NULL),
l(t('Forums'), 'forum'),
);
if (isset($parent)) {
$breadcrumb[] = l($parent['name'], 'forum/' . $parent['tid']);
}
$this
->assertRaw(theme('breadcrumb', array(
'breadcrumb' => $breadcrumb,
)), 'Breadcrumbs were displayed');
}