You are here

public function DocumentElementTest::testFindLink 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::testFindLink()

File

vendor/behat/mink/tests/Element/DocumentElementTest.php, line 92

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

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