Skip to content
Snippets Groups Projects
Commit fc8be9ee authored by Angie Byron's avatar Angie Byron
Browse files

#977184 by Stevel. Mark Trapp: Fixed test that failed in PHP 5.3 environments.

parent f5ebd774
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment