public function DocumentElementTest::testUncheckField 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::testUncheckField()
File
- vendor/
behat/ mink/ tests/ Element/ DocumentElementTest.php, line 341
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testUncheckField() {
$node = $this
->getMockBuilder('Behat\\Mink\\Element\\NodeElement')
->disableOriginalConstructor()
->getMock();
$node
->expects($this
->once())
->method('uncheck');
$this
->mockNamedFinder('//field', array(
$node,
), array(
'field',
'some field',
));
$this->document
->uncheckField('some field');
$this
->setExpectedException('Behat\\Mink\\Exception\\ElementNotFoundException');
$this->document
->uncheckField('some field');
}