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