public function ChoiceFormField::tick in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Field/ChoiceFormField.php \Symfony\Component\DomCrawler\Field\ChoiceFormField::tick()
Ticks a checkbox.
Throws
\LogicException When the type provided is not correct
File
- vendor/
symfony/ dom-crawler/ Field/ ChoiceFormField.php, line 86
Class
- ChoiceFormField
- ChoiceFormField represents a choice form field.
Namespace
Symfony\Component\DomCrawler\FieldCode
public function tick() {
if ('checkbox' !== $this->type) {
throw new \LogicException(sprintf('You cannot tick "%s" as it is not a checkbox (%s).', $this->name, $this->type));
}
$this
->setValue(true);
}