From 64a8af57deefe5c6c234763c9272922a30daa32c Mon Sep 17 00:00:00 2001 From: Antony Thorpe Date: Wed, 4 Mar 2015 18:38:43 +1300 Subject: [PATCH] Update FunctionalTest.php API notes submitForm method needs the name of the button (or null) to work --- dev/FunctionalTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/FunctionalTest.php b/dev/FunctionalTest.php index 885f5d425..1ad9471bb 100644 --- a/dev/FunctionalTest.php +++ b/dev/FunctionalTest.php @@ -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."));