You are here

public function NodeElementTest::testIsSelected in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/Element/NodeElementTest.php \Behat\Mink\Tests\Element\NodeElementTest::testIsSelected()

File

vendor/behat/mink/tests/Element/NodeElementTest.php, line 438

Class

NodeElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testIsSelected() {
  $node = new NodeElement('some_xpath', $this->session);
  $this->driver
    ->expects($this
    ->exactly(2))
    ->method('isSelected')
    ->with('some_xpath')
    ->will($this
    ->onConsecutiveCalls(true, false));
  $this
    ->assertTrue($node
    ->isSelected());
  $this
    ->assertFalse($node
    ->isSelected());
}