You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testHasTable() {
  $this
    ->mockNamedFinder('//table', array(
    'table',
  ), array(
    'table',
    'some table',
  ));
  $this
    ->assertTrue($this->document
    ->hasTable('some table'));
  $this
    ->assertFalse($this->document
    ->hasTable('some table'));
}