public function NodeElementTest::testGetText in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Element/NodeElementTest.php \Behat\Mink\Tests\Element\NodeElementTest::testGetText()
File
- vendor/
behat/ mink/ tests/ Element/ NodeElementTest.php, line 17
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testGetText() {
$expected = 'val1';
$node = new NodeElement('text_tag', $this->session);
$this->driver
->expects($this
->once())
->method('getText')
->with('text_tag')
->will($this
->returnValue($expected));
$this
->assertEquals($expected, $node
->getText());
}