public function NodeElementTest::testHasAttribute 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::testHasAttribute()
File
- vendor/
behat/ mink/ tests/ Element/ NodeElementTest.php, line 123
Class
Namespace
Behat\Mink\Tests\ElementCode
public function testHasAttribute() {
$node = new NodeElement('input_tag', $this->session);
$this->driver
->expects($this
->exactly(2))
->method('getAttribute')
->with('input_tag', 'href')
->will($this
->onConsecutiveCalls(null, 'http://...'));
$this
->assertFalse($node
->hasAttribute('href'));
$this
->assertTrue($node
->hasAttribute('href'));
}