diff --git a/core/modules/help/lib/Drupal/help/Tests/HelpTest.php b/core/modules/help/lib/Drupal/help/Tests/HelpTest.php index 8404d85..0bd35e6 100644 --- a/core/modules/help/lib/Drupal/help/Tests/HelpTest.php +++ b/core/modules/help/lib/Drupal/help/Tests/HelpTest.php @@ -67,13 +67,13 @@ class HelpTest extends WebTestBase { // Check for css on admin/help. $this->drupalLogin($this->big_user); $this->drupalGet('admin/help'); - $this->assertRaw(drupal_get_path('module', 'help') . '/help.css', t('The help.css file is present in the HTML.')); + $this->assertRaw(drupal_get_path('module', 'help') . '/help.css', 'The help.css file is present in the HTML.'); // Verify that introductory help text exists, goes for 100% module coverage. $this->assertRaw(t('For more information, refer to the specific topics listed in the next section or to the online Drupal handbooks.', array('@drupal' => 'http://drupal.org/documentation')), 'Help intro text correctly appears.'); // Verify that help topics text appears. - $this->assertRaw('

' . t('Help topics') . '

' . t('Help is available on the following items:') . '

', t('Help topics text correctly appears.')); + $this->assertRaw('

' . t('Help topics') . '

' . t('Help is available on the following items:') . '

', 'Help topics text correctly appears.'); // Make sure links are properly added for modules implementing hook_help(). foreach ($this->getModuleList() as $module => $name) { @@ -93,8 +93,8 @@ class HelpTest extends WebTestBase { $this->drupalGet('admin/help/' . $module); $this->assertResponse($response); if ($response == 200) { - $this->assertTitle($name . ' | Drupal', t('[' . $module . '] Title was displayed')); - $this->assertRaw('

' . t($name) . '

', t('[' . $module . '] Heading was displayed')); + $this->assertTitle($name . ' | Drupal', format_string('%module title was displayed', array('%module' => $module))); + $this->assertRaw('

' . t($name) . '

', format_string('%module heading was displayed', array('%module' => $module))); } } } diff --git a/core/modules/help/lib/Drupal/help/Tests/NoHelpTest.php b/core/modules/help/lib/Drupal/help/Tests/NoHelpTest.php index 933c20f..504501f 100644 --- a/core/modules/help/lib/Drupal/help/Tests/NoHelpTest.php +++ b/core/modules/help/lib/Drupal/help/Tests/NoHelpTest.php @@ -48,6 +48,6 @@ class NoHelpTest extends WebTestBase { $this->drupalLogin($this->big_user); $this->drupalGet('admin/help'); - $this->assertNoText('Hook menu tests', t('Making sure the test module menu_test does not display a help link in admin/help')); + $this->assertNoText('Hook menu tests', 'Making sure the test module menu_test does not display a help link in admin/help'); } }