You are here

public function SelectTest::testSetValueSingleSelect in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Form/SelectTest.php \Behat\Mink\Tests\Driver\Form\SelectTest::testSetValueSingleSelect()

File

vendor/behat/mink/driver-testsuite/tests/Form/SelectTest.php, line 84

Class

SelectTest

Namespace

Behat\Mink\Tests\Driver\Form

Code

public function testSetValueSingleSelect() {
  $session = $this
    ->getSession();
  $session
    ->visit($this
    ->pathTo('/multiselect_form.html'));
  $select = $this
    ->getAssertSession()
    ->fieldExists('select_number');
  $select
    ->setValue('10');
  $this
    ->assertEquals('10', $select
    ->getValue());
}