You are here

function TaxonomyMenuWebTestCase::createTerm in Taxonomy menu 7

Returns a new term with random properties in vocabulary $vid.

1 call to TaxonomyMenuWebTestCase::createTerm()
TaxonomyMenuUnitTest::setUp in ./taxonomy_menu.test
Sets up a Drupal site for running functional and integration tests.

File

./taxonomy_menu.test, line 31
Tests for taxonomy_menu.module.

Class

TaxonomyMenuWebTestCase
Class with common helper methods.

Code

function createTerm($vocabulary) {
  $term = $this
    ->createNewTerm($vocabulary);
  taxonomy_term_save($term);
  return $term;
}