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