public function DocumentElementTest::testHasField 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::testHasField()
File
- vendor/
behat/ mink/ tests/ Element/ DocumentElementTest.php, line 180
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testHasField() {
$this
->mockNamedFinder('//field', array(
'field1',
'field2',
'field3',
), array(
'field',
'some field',
));
$this
->assertTrue($this->document
->hasField('some field'));
$this
->assertFalse($this->document
->hasField('some field'));
}