Update FunctionalTest.php API notes

submitForm method needs the name of the button (or null) to work
This commit is contained in:
Antony Thorpe 2015-03-04 18:38:43 +13:00
parent 7b7a5e0312
commit 64a8af57de

View File

@ -12,7 +12,7 @@
* $this->get("your/url");
*
* // Submit a form on the page that you get in response
* $this->submitForm("MyForm_ID", array("Email" => "invalid email ^&*&^"));
* $this->submitForm("MyForm_ID", "action_dologin", array("Email" => "invalid email ^&*&^"));
*
* // Validate the content that is returned
* $this->assertExactMatchBySelector("#MyForm_ID p.error", array("That email address is invalid."));