src/Codeception/Lib/InnerBrowser.php 1 location
|
@@ 761-767 (lines=7) @@
|
758 |
|
* @param string $name the field name |
759 |
|
* @return string the name after stripping trailing square brackets |
760 |
|
*/ |
761 |
|
protected function getSubmissionFormFieldName($name) |
762 |
|
{ |
763 |
|
if (substr($name, -2) === '[]') { |
764 |
|
return substr($name, 0, -2); |
765 |
|
} |
766 |
|
return $name; |
767 |
|
} |
768 |
|
|
769 |
|
/** |
770 |
|
* Replaces boolean values in $params with the corresponding field's |
src/Codeception/Module/WebDriver.php 1 location
|
@@ 2008-2014 (lines=7) @@
|
2005 |
|
$this->debug($this->_getCurrentUri()); |
2006 |
|
} |
2007 |
|
|
2008 |
|
protected function getSubmissionFormFieldName($name) |
2009 |
|
{ |
2010 |
|
if (substr($name, -2) === '[]') { |
2011 |
|
return substr($name, 0, -2); |
2012 |
|
} |
2013 |
|
return $name; |
2014 |
|
} |
2015 |
|
|
2016 |
|
/** |
2017 |
|
* Submits the given form on the page, optionally with the given form |