public function createTerm($vocabulary, $name)
    {
        // @todo make this easily extensible.
        $term = (object) array(
        'name' => $name,
        'vocabulary_machine_name' => $vocabulary,
        'description' => $this->getRandom()->name(255),
        );
        $saved = $this->termCreate($term);

        // Set internal page on the term.
        $this->getSession()->visit($this->locatePath('/taxonomy/term/' . $saved->tid));
    }
public function createTerm($vocabulary, $name)
    {
        // @todo make this easily extensible.
        $term = (object) array(
        'name' => $name,
        'vocabulary_machine_name' => $vocabulary,
        'description' => $this->getRandom()->name(255),
        );
        $saved = $this->termCreate($term);

        // Set internal page on the term.
        $this->getSession()->visit($this->locatePath('/taxonomy/term/' . $saved->tid));
    }
public function createTerm ( $ vocabulary , $ name ) { // @todo make this easily extensible. $ term = ( object ) array ( 'name' => $ name , 'vocabulary_machine_name' => $ vocabulary , 'description' => $ this -> getRandom ( ) -> name ( 255 ) , ) ; $ saved = $ this -> termCreate ( $ term ) ; // Set internal page on the term. $ this -> getSession ( ) -> visit ( $ this -> locatePath ( '/taxonomy/term/' . $ saved -> tid ) ) ; }
Creates a term on an existing vocabulary.

@Given I am viewing a/an :vocabulary term with the name :name
@Given a/an :vocabulary term with the name :name
Creates a term on an existing vocabulary .