You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testHasContent() {
  $this
    ->mockNamedFinder('//some content', array(
    'item1',
    'item2',
  ), array(
    'content',
    'some content',
  ));
  $this
    ->assertTrue($this->document
    ->hasContent('some content'));
  $this
    ->assertFalse($this->document
    ->hasContent('some content'));
}