src/DrupalExtension/Context/RawMinkContext.php
public function assertElementType(NodeElement $element, $type) {
    if ($element->getTagName() !== $type) {
      throw new ExpectationException("The element is not a '$type'' field.", $this->getSession());
    }
  }
public function assertElementType(NodeElement $element, $type) {
    if ($element->getTagName() !== $type) {
      throw new ExpectationException("The element is not a '$type'' field.", $this->getSession());
    }
  }
public function assertElementType ( NodeElement $ element , $ type ) { if ( $ element -> getTagName ( ) !== $ type ) { throw new ExpectationException ( "The element is not a '$type'' field." , $ this -> getSession ( ) ) ; } }
Checks that the given element is of the given type.

@param \Behat\Mink\Element\NodeElement $element
The element to check.
@param string $type
The expected type.

@throws ExpectationException
Thrown when the given element is not of the expected type.
Checks that the given element is of the given type .