You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testFindButton() {
  $this
    ->mockNamedFinder('//button', array(
    'button1',
    'button2',
    'button3',
  ), array(
    'button',
    'some button',
  ));
  $this
    ->assertEquals('button1', $this->document
    ->findButton('some button'));
  $this
    ->assertEquals(null, $this->document
    ->findButton('some button'));
}