You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testFindField() {
  $this
    ->mockNamedFinder('//field', array(
    'field1',
    'field2',
    'field3',
  ), array(
    'field',
    'some field',
  ));
  $this
    ->assertEquals('field1', $this->document
    ->findField('some field'));
  $this
    ->assertEquals(null, $this->document
    ->findField('some field'));
}