- Patch #266178 by boombatower: SimpleTest internal browser no longer handles element ids.
parent
201e1dd356
commit
3020deb421
|
@ -622,12 +622,13 @@ class DrupalWebTestCase extends UnitTestCase {
|
||||||
foreach ($elements as $element) {
|
foreach ($elements as $element) {
|
||||||
// SimpleXML objects need string casting all the time.
|
// SimpleXML objects need string casting all the time.
|
||||||
$name = (string) $element['name'];
|
$name = (string) $element['name'];
|
||||||
|
$id = (string) $element['id'];
|
||||||
// This can either be the type of <input> or the name of the tag itself
|
// This can either be the type of <input> or the name of the tag itself
|
||||||
// for <select> or <textarea>.
|
// for <select> or <textarea>.
|
||||||
$type = isset($element['type']) ? (string)$element['type'] : $element->getName();
|
$type = isset($element['type']) ? (string)$element['type'] : $element->getName();
|
||||||
$value = isset($element['value']) ? (string)$element['value'] : '';
|
$value = isset($element['value']) ? (string)$element['value'] : '';
|
||||||
$done = FALSE;
|
$done = FALSE;
|
||||||
if (isset($edit[$name])) {
|
if (isset($edit[$name]) || isset($edit[$id])) {
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'text':
|
case 'text':
|
||||||
case 'textarea':
|
case 'textarea':
|
||||||
|
|
Loading…
Reference in New Issue