$edit = [
'field_tags[target_id]' => implode(',', array_keys($tags)),
];
$edit = [
'field_tags[target_id]' => implode(',', array_keys($tags)),
];
// Put both terms into a hierarchy Drupal » Breadcrumbs. Required for both
// the menu links and the terms itself, since taxonomy_term_page() resets
// Put both terms into a hierarchy Drupal » Breadcrumbs. Required for both
// the menu links and the terms itself, since taxonomy_term_page() resets
// user is not able to access "Administer".
$trail = $home;
$this->assertBreadcrumb('admin', $trail, t('Access denied'));
// user is not able to access "Administer".
$trail = $home;
$this->assertBreadcrumb('admin', $trail, t('Access denied'));
// Since the 'admin' path is not accessible, we still expect only the Home
// link.
$this->assertBreadcrumb('admin/reports', $trail, t('Reports'));
// Since the 'admin' path is not accessible, we still expect only the Home
// link.
$this->assertBreadcrumb('admin/reports', $trail, t('Reports'));
// Since the Reports page is accessible, that will show.
$trail += ['admin/reports' => t('Reports')];
$this->assertBreadcrumb('admin/reports/dblog', $trail, t('Recent log messages'));
// Since the Reports page is accessible, that will show.
$trail += ['admin/reports' => t('Reports')];
$this->assertBreadcrumb('admin/reports/dblog', $trail, t('Recent log messages'));
// Ensure that the breadcrumb is safe against XSS.
$this->drupalGet('menu-test/breadcrumb1/breadcrumb2/breadcrumb3');
// Ensure that the breadcrumb is safe against XSS.
$this->drupalGet('menu-test/breadcrumb1/breadcrumb2/breadcrumb3');