public function SelectTest::testSetValueMultiSelect in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/driver-testsuite/tests/Form/SelectTest.php \Behat\Mink\Tests\Driver\Form\SelectTest::testSetValueMultiSelect()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ SelectTest.php, line 94
Class
Namespace
Behat\Mink\Tests\Driver\FormCode
public function testSetValueMultiSelect() {
$session = $this
->getSession();
$session
->visit($this
->pathTo('/multiselect_form.html'));
$select = $this
->getAssertSession()
->fieldExists('select_multiple_values[]');
$select
->setValue(array(
'1',
'2',
));
$this
->assertEquals(array(
'1',
'2',
), $select
->getValue());
}