You are here

public function RadioTest::testSameNameInMultipleForms in Zircon Profile 8.0

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

File

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

Class

RadioTest

Namespace

Behat\Mink\Tests\Driver\Form

Code

public function testSameNameInMultipleForms() {
  $option1 = $this
    ->findById('reused_form1');
  $option2 = $this
    ->findById('reused_form2');
  $this
    ->assertEquals('test2', $option1
    ->getValue());
  $this
    ->assertEquals('test3', $option2
    ->getValue());
  $option1
    ->selectOption('test');
  $this
    ->assertEquals('test', $option1
    ->getValue());
  $this
    ->assertEquals('test3', $option2
    ->getValue());
}