You are here

public function NodeElementTest::testGetValue 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::testGetValue()

File

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

Class

NodeElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testGetValue() {
  $expected = 'val1';
  $node = new NodeElement('input_tag', $this->session);
  $this->driver
    ->expects($this
    ->once())
    ->method('getValue')
    ->with('input_tag')
    ->will($this
    ->returnValue($expected));
  $this
    ->assertEquals($expected, $node
    ->getValue());
}