/**
* Performs an xpath search on the contents of the internal browser.
*
* The search is relative to the root element (HTML tag normally) of the page.
*
* @param $xpath
* The xpath string to use in the search.
*
* @return
* The return value of the xpath search. For details on the xpath string
* format and return values see the SimpleXML documentation,
* http://php.net/manual/function.simplexml-element-xpath.php.
*/
protected function xpath($xpath, array $arguments = array()) {The $arguments parameter needs documentation. See https://drupal.org/node/1354#param for documentation guidelines.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | WebTestBase.php-23181863-comment5.patch | 1.72 KB | karthikkumarbodu |
| #4 | WebTestBase.php-23181863-comment.patch | 2.82 KB | karthikkumarbodu |
| #1 | WebTestBase.php-23181863-comment.patch | 759 bytes | karthikkumarbodu |
Comments
Comment #1
karthikkumarbodu commentedAdded documentation for $arguments parameter in the xpath function.
Comment #2
star-szrThanks @karthik kumar bodu!
Looks good and I know this is copied from buildXPathQuery (which is perfectly fine) but the standards now dictate that the data type is required. From https://drupal.org/node/1354#param:
Since the testbots are so backed up I'm going to cancel the test of that patch.
Comment #4
karthikkumarbodu commentedHey Scott Reeves, Thanks for the instructions and i just created a new patch adding the data types for the arguments.
Comment #5
tstoecklerOh no! This is such a lovely patch and I really Wanted to RTBC it, but you accidentally included the patch file itself in the patch. :-> can you quickly re-upload without that hunk? That would be great!
Comment #6
karthikkumarbodu commentedYes now uploading the correct patch, thanks for reporting the issue in the patch :)
Comment #7
tstoecklerAwesome. Thanks!
Comment #8
catchCommitted/pushed to 8.x, thanks!