diff -u b/core/modules/help_topics/tests/src/Functional/HelpTopicTest.php b/core/modules/help_topics/tests/src/Functional/HelpTopicTest.php --- b/core/modules/help_topics/tests/src/Functional/HelpTopicTest.php +++ b/core/modules/help_topics/tests/src/Functional/HelpTopicTest.php @@ -202,19 +202,18 @@ * Tests breadcrumb on a help topic page. */ public function testBreadCrumb() { - // Prepare common base breadcrumb elements. - $home = ['' => 'Home']; - $admin = $home + ['admin' => t('Administration')]; - - $page = 'admin/help/topic/help-test'; - $this->drupalGet($page); + // Login as a user that can access help topics. + $this->drupalLogin($this->adminUser); // Verify Help Topics administration breadcrumbs. - $trail = $admin + [ + $trail = [ + '' => 'Home', + 'admin' => t('Administration'), 'admin/help' => t('Help'), ]; $this->assertBreadcrumb('admin/help/topic/help-test', $trail); - + // Ensure we are on the expected help topic page. + $this->assertSession()->pageTextContains('Also there should be a related topic link below to the Help module topic page and the linked topic.'); } }