public function DocumentElementTest::testFindLink 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::testFindLink()
File
- vendor/
behat/ mink/ tests/ Element/ DocumentElementTest.php, line 92
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testFindLink() {
$this
->mockNamedFinder('//link', array(
'link1',
'link2',
'link3',
), array(
'link',
'some link',
));
$this
->assertEquals('link1', $this->document
->findLink('some link'));
$this
->assertEquals(null, $this->document
->findLink('some link'));
}