You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testHasSelect() {
  $this
    ->mockNamedFinder('//select', array(
    'select',
  ), array(
    'select',
    'some select field',
  ));
  $this
    ->assertTrue($this->document
    ->hasSelect('some select field'));
  $this
    ->assertFalse($this->document
    ->hasSelect('some select field'));
}