public function DocumentElementTest::testHasSelector in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/Element/DocumentElementTest.php \Behat\Mink\Tests\Element\DocumentElementTest::testHasSelector()
File
- vendor/
behat/ mink/ tests/ Element/ DocumentElementTest.php, line 126
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testHasSelector() {
$this->driver
->expects($this
->exactly(2))
->method('find')
->with('//html/some xpath')
->will($this
->onConsecutiveCalls(array(
'id2',
'id3',
), array()));
$this->selectors
->expects($this
->exactly(2))
->method('selectorToXpath')
->with('xpath', 'some xpath')
->will($this
->returnValue('some xpath'));
$this
->assertTrue($this->document
->has('xpath', 'some xpath'));
$this
->assertFalse($this->document
->has('xpath', 'some xpath'));
}