You are here

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

File

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

Class

DocumentElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testGetText() {
  $expects = 'val1';
  $this->driver
    ->expects($this
    ->once())
    ->method('getText')
    ->with('//html')
    ->will($this
    ->returnValue($expects));
  $this
    ->assertEquals($expects, $this->document
    ->getText());
}