You are here

public function NodeElementTest::testGetTagName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/Element/NodeElementTest.php \Behat\Mink\Tests\Element\NodeElementTest::testGetTagName()

File

vendor/behat/mink/tests/Element/NodeElementTest.php, line 363

Class

NodeElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testGetTagName() {
  $node = new NodeElement('html//h3', $this->session);
  $this->driver
    ->expects($this
    ->once())
    ->method('getTagName')
    ->with('html//h3')
    ->will($this
    ->returnValue('h3'));
  $this
    ->assertEquals('h3', $node
    ->getTagName());
}