public function NodeElementTest::testElementIsValid 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::testElementIsValid()
File
- vendor/
behat/ mink/ tests/ Element/ NodeElementTest.php, line 45
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testElementIsValid() {
$elementXpath = 'some xpath';
$node = new NodeElement($elementXpath, $this->session);
$this->driver
->expects($this
->once())
->method('find')
->with($elementXpath)
->will($this
->returnValue(array(
$elementXpath,
)));
$this
->assertTrue($node
->isValid());
}