function AbstractBrowser::submit
Submits a form.
Parameters
array $values An array of form field values:
array $serverParameters An array of server parameters:
2 calls to AbstractBrowser::submit()
- AbstractBrowser::click in vendor/
symfony/ browser-kit/ AbstractBrowser.php - Clicks on a given link.
- AbstractBrowser::submitForm in vendor/
symfony/ browser-kit/ AbstractBrowser.php - Finds the first form that contains a button with the given content and uses it to submit the given form field values.
File
-
vendor/
symfony/ browser-kit/ AbstractBrowser.php, line 294
Class
- AbstractBrowser
- Simulates a browser.
Namespace
Symfony\Component\BrowserKitCode
public function submit(Form $form, array $values = [], array $serverParameters = []) : Crawler {
$form->setValues($values);
return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles(), $serverParameters);
}