diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-06-10 08:02:22 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-06-10 08:02:22 -0700 |
commit | 0a14ec94181af3fcbb9ad6d9fd4b7e72dc850c7e (patch) | |
tree | f48cf17ab3dae8c084f1d4159f1e3b53a36ab023 /modules/help/help.test | |
parent | cca14341f0afa7d00cccd05a865db46888ac70d4 (diff) | |
download | brdo-0a14ec94181af3fcbb9ad6d9fd4b7e72dc850c7e.tar.gz brdo-0a14ec94181af3fcbb9ad6d9fd4b7e72dc850c7e.tar.bz2 |
Issue #1797330 by xjm, Lars Toomre, dcam, lazysoundsystem: Remove t() from test assertions in help module
Diffstat (limited to 'modules/help/help.test')
-rw-r--r-- | modules/help/help.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/help/help.test b/modules/help/help.test index a18e68ce6..da12ccc50 100644 --- a/modules/help/help.test +++ b/modules/help/help.test @@ -52,17 +52,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', 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 <a href="@drupal">online Drupal handbooks</a>.', array('@drupal' => 'http://drupal.org/documentation')), '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>', t('Help topics text correctly appears.')); + $this->assertRaw('<h2>' . t('Help topics') . '</h2><p>' . t('Help is available on the following items:') . '</p>', '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, t('Link properly added to @name (admin/help/@module)', array('@module' => $module, '@name' => $name))); + $this->assertLink($name, 0, format_string('Link properly added to @name (admin/help/@module)', array('@module' => $module, '@name' => $name))); } } @@ -78,8 +78,8 @@ class HelpTestCase extends DrupalWebTestCase { $this->drupalGet('admin/help/' . $module); $this->assertResponse($response); if ($response == 200) { - $this->assertTitle($name . ' | Drupal', t('[' . $module . '] Title was displayed')); - $this->assertRaw('<h1 class="page-title">' . t($name) . '</h1>', t('[' . $module . '] Heading was displayed')); + $this->assertTitle($name . ' | Drupal', format_string('%module title was displayed', array('%module' => $module))); + $this->assertRaw('<h1 class="page-title">' . t($name) . '</h1>', format_string('%module heading was displayed', array('%module' => $module))); } } } @@ -132,6 +132,6 @@ class NoHelpTestCase extends DrupalWebTestCase { $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'); } } |