| 177 |
"Submitted and successfully processed all import files in BATCH mode. Got as far as the results page summary." |
"Submitted and successfully processed all import files in BATCH mode. Got as far as the results page summary." |
| 178 |
); |
); |
| 179 |
|
|
| 180 |
$this->pass($this->drupalGetContent()); |
$this->pass($this->drupalGetContent()); |
| 181 |
|
|
| 182 |
} |
} |
| 183 |
|
|
| 192 |
$this->parse(); |
$this->parse(); |
| 193 |
$elements = $this->xpath('//input'); |
$elements = $this->xpath('//input'); |
| 194 |
foreach ($elements as $element) { |
foreach ($elements as $element) { |
| 195 |
if($element['type'] == 'checkbox' && strstr($element['name'], 'file_rel_path')) { |
if ($element['type'] == 'checkbox' && strstr($element['name'], 'file_rel_path')) { |
| 196 |
#$this->pass("Found checkbox indicating file to import ". print_r($element, 1) ); |
#$this->pass("Found checkbox indicating file to import ". print_r($element, 1) ); |
| 197 |
// I need to figure out my own ][ brackets :( |
// I need to figure out my own ][ brackets :( |
| 198 |
$edit[ 'file_rel_path['.$element['value'].']' ] = ''.$element['value']; |
$edit["file_rel_path[{$element['value']}]"] = ''. $element['value']; |
| 199 |
// That was HACKY! |
// That was HACKY! |
| 200 |
} |
} |
| 201 |
} |
} |