You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testHasButton() {
  $this
    ->mockNamedFinder('//button', array(
    'button1',
    'button2',
    'button3',
  ), array(
    'button',
    'some button',
  ));
  $this
    ->assertTrue($this->document
    ->hasButton('some button'));
  $this
    ->assertFalse($this->document
    ->hasButton('some button'));
}