You are here

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

File

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

Class

NodeElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testSetValue() {
  $expected = 'new_val';
  $node = new NodeElement('input_tag', $this->session);
  $this->driver
    ->expects($this
    ->once())
    ->method('setValue')
    ->with('input_tag', $expected);
  $node
    ->setValue($expected);
}