diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-08-05 18:07:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-08-05 18:07:14 +0000 |
commit | ac55eb1e4e2090d212237f142024b5f03a6c1a15 (patch) | |
tree | ec75c5b63fbac7c7cafa5330165565e7cbdce5b7 /modules/poll/poll.test | |
parent | 7881dd19a90bfa62776b26212c989ecd9af39c90 (diff) | |
download | brdo-ac55eb1e4e2090d212237f142024b5f03a6c1a15.tar.gz brdo-ac55eb1e4e2090d212237f142024b5f03a6c1a15.tar.bz2 |
- Patch #276200 by catch, Damien, cwgordon7 et al: fixed problem with poll module tests.
Diffstat (limited to 'modules/poll/poll.test')
-rw-r--r-- | modules/poll/poll.test | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/poll/poll.test b/modules/poll/poll.test index 69865b7d1..6c190a4e3 100644 --- a/modules/poll/poll.test +++ b/modules/poll/poll.test @@ -34,9 +34,7 @@ class PollTestCase extends DrupalWebTestCase { if ($test_preview) { $this->drupalPost(NULL, $edit, t('Preview')); foreach($choices as $k => $choice_text) { - $this->assertRaw($choice_text, "Choice $k found in preview"); - $themed_bar = theme('poll_bar', $choice_text, 0, 0, FALSE, FALSE); - $this->assertRaw($themed_bar, "Choice $k bar is themed"); + $this->assertRaw($choice_text, t('Choice @choice found was in preview.', array('@choice' => $k))); } list($edit, $index) = $this->_pollGenerateEdit($title, $choices, $index); } |