Esempio n. 1
0
 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');
 }