diff --git a/core/modules/system/src/Tests/Form/ModulesListFormWebTest.php b/core/modules/system/src/Tests/Form/ModulesListFormWebTest.php index 3600364f186b5b918fa75f8c99071206570e2b00..489f6ffdaf081016cc6e66992622fdb8a97a5078 100644 --- a/core/modules/system/src/Tests/Form/ModulesListFormWebTest.php +++ b/core/modules/system/src/Tests/Form/ModulesListFormWebTest.php @@ -19,7 +19,7 @@ class ModulesListFormWebTest extends WebTestBase { /** * {@inheritdoc} */ - public static $modules = array('system_test'); + public static $modules = array('system_test', 'help'); /** * {@inheritdoc} @@ -46,6 +46,9 @@ public function testModuleListForm() { // Check that system_test's permissions link was rendered correctly. $this->assertFieldByXPath("//a[contains(@href, '/admin/people/permissions#module-system_test') and @title='Configure permissions']"); + + // Check that system_test's help link was rendered correctly. + $this->assertFieldByXPath("//a[contains(@href, '/admin/help/system_test') and @title='Help']"); } } diff --git a/core/modules/system/tests/modules/system_test/system_test.module b/core/modules/system/tests/modules/system_test/system_test.module index fb1538d608e2ccdb142aaa0ec94cee37535d2d79..eef351689ecb6bdb1db6c476857bb217276b084c 100644 --- a/core/modules/system/tests/modules/system_test/system_test.module +++ b/core/modules/system/tests/modules/system_test/system_test.module @@ -1,6 +1,20 @@ ' . t('Test Help Page') . ''; + $output .= '

' . t('This is a test help page for the system_test module for the purpose of testing if the "Help" link displays properly.') . '

'; + return $output; + } +} /** * Implements hook_modules_installed().