You are here

public function FeedsTamperEfqFinderTestCase::testTaxonomyTermWithBundle in Feeds Tamper 7

Maps term names to term ids with a bundle.

File

tests/feeds_tamper_efq_finder.test, line 66
Contains FeedsTamperEfqFinderTestCase.

Class

FeedsTamperEfqFinderTestCase
Tests for the efq_finder plugin.

Code

public function testTaxonomyTermWithBundle() {

  // Create some taxonomy terms.
  taxonomy_term_save((object) array(
    'name' => 'ref 1',
    'vid' => 1,
  ));
  taxonomy_term_save((object) array(
    'name' => 'ref 2',
    'vid' => 1,
  ));
  taxonomy_term_save((object) array(
    'name' => 'ref 3',
    'vid' => 1,
  ));
  $edit = array(
    'entity_type' => 'taxonomy_term',
    'bundle' => 'terms',
    'field' => 'name',
  );
  $this
    ->doTaxonomyTermTest($edit);
}