diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 23:53:39 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 23:53:39 +0000 |
commit | 25171a17f626695ecf984cc44b60d3eae1310b4c (patch) | |
tree | 3268ef89294cbb96d0875d665012c4ff16d8c68a /modules/help/help.test | |
parent | cacd044a6398df92de68c5aea31987ac0fff507a (diff) | |
download | brdo-25171a17f626695ecf984cc44b60d3eae1310b4c.tar.gz brdo-25171a17f626695ecf984cc44b60d3eae1310b4c.tar.bz2 |
Reverting #500866. Needs more discussion.
Diffstat (limited to 'modules/help/help.test')
-rw-r--r-- | modules/help/help.test | 14 |
1 files changed, 7 insertions, 7 deletions
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 <a href="@drupal">online Drupal handbooks</a>.', array('@drupal' => 'http://drupal.org/handbooks')), 'Help intro text correctly appears.'); // Verify that help topics text appears. - $this->assertRaw('<h2>' . t('Help topics') . '</h2><p>' . t('Help is available on the following items:') . '</p>', 'Help topics text correctly appears.'); + $this->assertRaw('<h2>' . t('Help topics') . '</h2><p>' . t('Help is available on the following items:') . '</p>', 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('<h1 class="page-title">' . t($name) . '</h1>', '[' . $module . '] Heading was displayed'); - } + $this->assertTitle($name . ' | Drupal', t('[' . $module . '] Title was displayed')); + $this->assertRaw('<h1 class="page-title">' . t($name) . '</h1>', 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')); } } |