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