public function DocumentElementTest::testFillField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Element/DocumentElementTest.php \Behat\Mink\Tests\Element\DocumentElementTest::testFillField()
File
- vendor/
behat/ mink/ tests/ Element/ DocumentElementTest.php, line 300
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testFillField() {
$node = $this
->getMockBuilder('Behat\\Mink\\Element\\NodeElement')
->disableOriginalConstructor()
->getMock();
$node
->expects($this
->once())
->method('setValue')
->with('some val');
$this
->mockNamedFinder('//field', array(
$node,
), array(
'field',
'some field',
));
$this->document
->fillField('some field', 'some val');
$this
->setExpectedException('Behat\\Mink\\Exception\\ElementNotFoundException');
$this->document
->fillField('some field', 'some val');
}