public function DocumentElementTest::testFindButton 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::testFindButton()
File
- vendor/
behat/ mink/ tests/ Element/ DocumentElementTest.php, line 104
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testFindButton() {
$this
->mockNamedFinder('//button', array(
'button1',
'button2',
'button3',
), array(
'button',
'some button',
));
$this
->assertEquals('button1', $this->document
->findButton('some button'));
$this
->assertEquals(null, $this->document
->findButton('some button'));
}