diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-21 10:14:25 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-21 10:14:25 +0000 |
commit | fc8be9eeb4a8fbe872da57b8e270966a1ba45eae (patch) | |
tree | 561d1d3d161c4503dc24d1cc002b70f3bc04c7be | |
parent | f5ebd774b1889163cef455dadb589b6b02df0b6a (diff) | |
download | brdo-fc8be9eeb4a8fbe872da57b8e270966a1ba45eae.tar.gz brdo-fc8be9eeb4a8fbe872da57b8e270966a1ba45eae.tar.bz2 |
#977184 by Stevel. Mark Trapp: Fixed test that failed in PHP 5.3 environments.
-rw-r--r-- | modules/simpletest/tests/form.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test index 4370f1843..6a7f26c3d 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -418,8 +418,8 @@ class FormElementTestCase extends DrupalWebTestCase { } // Verify that custom #description properties are output. foreach (array('checkboxes', 'radios') as $type) { - $elements = $this->xpath('//input[@name=:name]/following-sibling::div[@class=:class]', array( - ':name' => $type . '[foo]', + $elements = $this->xpath('//input[@id=:id]/following-sibling::div[@class=:class]', array( + ':id' => 'edit-' . $type . '-foo', ':class' => 'description', )); $this->assertTrue(count($elements), t('Custom %type option description found.', array( |