You are here

public function RadioTest::testIsChecked in Zircon Profile 8

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

File

vendor/behat/mink/driver-testsuite/tests/Form/RadioTest.php, line 14

Class

RadioTest

Namespace

Behat\Mink\Tests\Driver\Form

Code

public function testIsChecked() {
  $option = $this
    ->findById('first');
  $option2 = $this
    ->findById('second');
  $this
    ->assertTrue($option
    ->isChecked());
  $this
    ->assertFalse($option2
    ->isChecked());
  $option2
    ->selectOption('updated');
  $this
    ->assertFalse($option
    ->isChecked());
  $this
    ->assertTrue($option2
    ->isChecked());
}