src/Context/Form/FormContext.php
public function checkboxAction($action, TableNode $checkboxes)
    {
        $minkContext = $this->getMinkContext();

        foreach ($checkboxes->getRows() as $checkbox) {
            $minkContext->{trim($action) . 'Option'}(reset($checkbox));
        }
    }
public function checkboxAction($action, TableNode $checkboxes)
    {
        $minkContext = $this->getMinkContext();

        foreach ($checkboxes->getRows() as $checkbox) {
            $minkContext->{trim($action) . 'Option'}(reset($checkbox));
        }
    }
@param string $action
Can be "check" or "uncheck".
@param TableNode $checkboxes
Table with one row of checkboxes selectors.

@example
I uncheck the boxes:
| Consumer Products  |
| Financial Services |

@example
I check the boxes:
| Consumer Products  |
| Financial Services |

@Given /^(?:|I )(?:|un)check the boxes:/