You are here

public function DocumentElementTest::testHasLink in Zircon Profile 8

Same name and namespace in other branches
  1. 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

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

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'));
}