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