src/DrupalExtension/Context/TaxonomyTermContext.php
protected function visitTermPage($op, $type, $name) {
    $type = $this->getCore()->convertLabelToTermTypeId($type);
    $term = $this->getCore()->loadTaxonomyTermByName($type, $name);

    if (!empty($term)) {
      $path = [
        'view' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}",
        'edit' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}/edit",
        'delete' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}/delete",
      ];
      $this->visitPath($path[$op]);
    }
    else {
      throw new ExpectationException("No taxonomy term with vocabulary '$type' and name '$name' has been found.", $this->getSession());
    }
  }
protected function visitTermPage($op, $type, $name) {
    $type = $this->getCore()->convertLabelToTermTypeId($type);
    $term = $this->getCore()->loadTaxonomyTermByName($type, $name);

    if (!empty($term)) {
      $path = [
        'view' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}",
        'edit' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}/edit",
        'delete' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}/delete",
      ];
      $this->visitPath($path[$op]);
    }
    else {
      throw new ExpectationException("No taxonomy term with vocabulary '$type' and name '$name' has been found.", $this->getSession());
    }
  }
protected function visitTermPage ( $ op , $ type , $ name ) { $ type = $ this -> getCore ( ) -> convertLabelToTermTypeId ( $ type ) ; $ term = $ this -> getCore ( ) -> loadTaxonomyTermByName ( $ type , $ name ) ; if ( ! empty ( $ term ) ) { $ path = [ 'view' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}" , 'edit' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}/edit" , 'delete' => "taxonomy/term/{$this->getCore()->getTaxonomyTermId($term)}/delete" , ] ; $ this -> visitPath ( $ path [ $ op ] ) ; } else { throw new ExpectationException ( "No taxonomy term with vocabulary '$type' and name '$name' has been found." , $ this -> getSession ( ) ) ; } }
Provides a common step definition callback for taxonomy term pages.

@param string $op
The operation being performed: 'view', 'edit', 'delete'.
@param string $type
The term's vocabulary, either as machine name or label.
@param string $name
The term name.

@throws ExpectationException
When the term does not exist.
Provides a common step definition callback for taxonomy term pages .