From 25171a17f626695ecf984cc44b60d3eae1310b4c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 5 Aug 2010 23:53:39 +0000 Subject: Reverting #500866. Needs more discussion. --- modules/help/help.test | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/help') diff --git a/modules/help/help.test b/modules/help/help.test index 070f8159a..db739f345 100644 --- a/modules/help/help.test +++ b/modules/help/help.test @@ -41,17 +41,17 @@ class HelpTestCase extends DrupalWebTestCase { // Check for css on admin/help. $this->drupalLogin($this->big_user); $this->drupalGet('admin/help'); - $this->assertRaw(drupal_get_path('module', 'help') . '/help.css', 'The help.css file is present in the HTML.'); + $this->assertRaw(drupal_get_path('module', 'help') . '/help.css', t('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/handbooks')), 'Help intro text correctly appears.'); // Verify that help topics text appears. - $this->assertRaw('

' . t('Help topics') . '

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

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

' . t('Help topics') . '

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

', t('Help topics text correctly appears.')); // Make sure links are properly added for modules implementing hook_help(). foreach ($this->modules as $module => $name) { - $this->assertLink($name, 0, 'Link properly added to ' . $name . ' (admin/help/' . $module . ')'); + $this->assertLink($name, 0, t('Link properly added to @name (admin/help/@module)', array('@module' => $module, '@name' => $name))); } } @@ -66,9 +66,9 @@ class HelpTestCase extends DrupalWebTestCase { $this->drupalGet('admin/help/' . $module); $this->assertResponse($response); if ($response == 200) { - $this->assertTitle($name . ' | Drupal', '[' . $module . '] Title was displayed'); - $this->assertRaw('

' . t($name) . '

', '[' . $module . '] Heading was displayed'); - } + $this->assertTitle($name . ' | Drupal', t('[' . $module . '] Title was displayed')); + $this->assertRaw('

' . t($name) . '

', t('[' . $module . '] Heading was displayed')); + } } } @@ -116,6 +116,6 @@ class NoHelpTestCase extends DrupalWebTestCase { $this->drupalLogin($this->big_user); $this->drupalGet('admin/help'); - $this->assertNoText('Hook menu tests', 'Making sure the test module menu_test does not display a help link in admin/help'); + $this->assertNoText('Hook menu tests', t('Making sure the test module menu_test does not display a help link in admin/help')); } } -- cgit v1.2.3