diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php index 481a1ad..29740ce 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php @@ -408,10 +408,12 @@ function testBreadCrumbs() { $this->assertBreadcrumb('admin', $trail, t('Access denied')); $this->assertResponse(403); - $trail += array('admin' => t('Administration')); + // Since the 'admin' path is not accessible, we still expect + // only the Home link. $this->assertBreadcrumb('admin/reports', $trail, t('Reports')); $this->assertNoResponse(403); + // Since the Reports page is accessible, that will show. $trail += array('admin/reports' => t('Reports')); $this->assertBreadcrumb('admin/reports/dblog', $trail, t('Recent log messages')); $this->assertNoResponse(403);