diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-06-10 07:47:21 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-06-10 07:47:21 -0700 |
commit | 053a3b0346ab82770648056ceca881b8b2f0b43c (patch) | |
tree | b94cf7e1bf5208e6eb6d180bded31166f9c81847 | |
parent | ba9798a428145a74c6182294602f009d491d7b60 (diff) | |
download | brdo-053a3b0346ab82770648056ceca881b8b2f0b43c.tar.gz brdo-053a3b0346ab82770648056ceca881b8b2f0b43c.tar.bz2 |
Issue #1797510 by Lars Toomre, xjm, lazysoundsystem, dcam: Remove t() from test assertions in shortcut module
-rw-r--r-- | modules/shortcut/shortcut.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/shortcut/shortcut.test b/modules/shortcut/shortcut.test index 801d58550..2bd9605c8 100644 --- a/modules/shortcut/shortcut.test +++ b/modules/shortcut/shortcut.test @@ -211,16 +211,16 @@ class ShortcutLinksTestCase extends ShortcutTestCase { variable_set('theme_default', 'seven'); $this->drupalGet('page-that-does-not-exist'); - $this->assertNoRaw('add-shortcut', t('Add to shortcuts link was not shown on a page not found.')); + $this->assertNoRaw('add-shortcut', 'Add to shortcuts link was not shown on a page not found.'); // The user does not have access to this path. $this->drupalGet('admin/modules'); - $this->assertNoRaw('add-shortcut', t('Add to shortcuts link was not shown on a page the user does not have access to.')); + $this->assertNoRaw('add-shortcut', 'Add to shortcuts link was not shown on a page the user does not have access to.'); // Verify that the testing mechanism works by verifying the shortcut // link appears on admin/content/node. $this->drupalGet('admin/content/node'); - $this->assertRaw('add-shortcut', t('Add to shortcuts link was shown on a page the user does have access to.')); + $this->assertRaw('add-shortcut', 'Add to shortcuts link was shown on a page the user does have access to.'); } } @@ -334,7 +334,7 @@ class ShortcutSetsTestCase extends ShortcutTestCase { $this->drupalPost('admin/config/user-interface/shortcut/' . $set->set_name . '/edit', array('title' => $existing_title), t('Save')); $this->assertRaw(t('The shortcut set %name already exists. Choose another name.', array('%name' => $existing_title))); $set = shortcut_set_load($set->set_name); - $this->assertNotEqual($set->title, $existing_title, t('The shortcut set %title cannot be renamed to %new-title because a shortcut set with that title already exists.', array('%title' => $set->title, '%new-title' => $existing_title))); + $this->assertNotEqual($set->title, $existing_title, format_string('The shortcut set %title cannot be renamed to %new-title because a shortcut set with that title already exists.', array('%title' => $set->title, '%new-title' => $existing_title))); } /** |