Commit ac55eb1e authored by Dries's avatar Dries

- Patch #276200 by catch, Damien, cwgordon7 et al: fixed problem with poll module tests.

parent 7881dd19
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment