public function NodeElementTest::testFindAllParentUnion 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::testFindAllParentUnion()
File
- vendor/
behat/ mink/ tests/ Element/ NodeElementTest.php, line 576
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testFindAllParentUnion() {
$node = new NodeElement('some_xpath | another_xpath', $this->session);
$xpath = 'some_tag1 | some_tag2';
$expectedPrefixed = '(some_xpath | another_xpath)/some_tag1 | (some_xpath | another_xpath)/some_tag2';
$this->driver
->expects($this
->exactly(1))
->method('find')
->will($this
->returnValueMap(array(
array(
$expectedPrefixed,
array(
2,
3,
4,
),
),
)));
$this->selectors
->expects($this
->exactly(1))
->method('selectorToXpath')
->will($this
->returnValueMap(array(
array(
'xpath',
$xpath,
$xpath,
),
)));
$this
->assertEquals(3, count($node
->findAll('xpath', $xpath)));
}