From ac55eb1e4e2090d212237f142024b5f03a6c1a15 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 5 Aug 2008 18:07:14 +0000 Subject: - Patch #276200 by catch, Damien, cwgordon7 et al: fixed problem with poll module tests. --- modules/poll/poll.test | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules') 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); } -- cgit v1.2.3