You are here

public function FeedsMapperTaxonomyTestCase::assertTaxonomyTerm in Feeds 7

Same name and namespace in other branches
  1. 6 tests/feeds_mapper_taxonomy.test \FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()
  2. 7.2 tests/feeds_mapper_taxonomy.test \FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()

Helper, finds node style taxonomy term markup in DOM.

2 calls to FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()
FeedsMapperTaxonomyTestCase::testInheritTaxonomy in tests/feeds_mapper_taxonomy.test
Test inheriting taxonomy from the feed node.
FeedsMapperTaxonomyTestCase::testRSSCategoriesToTaxonomy in tests/feeds_mapper_taxonomy.test
Test aggregating RSS categories to taxonomy.

File

tests/feeds_mapper_taxonomy.test, line 226

Class

FeedsMapperTaxonomyTestCase
Class for testing Feeds <em>content</em> mapper.

Code

public function assertTaxonomyTerm($term) {
  $term = check_plain($term);
  $this
    ->assertPattern('/<a href="(.*?)\\/taxonomy\\/term\\/([0-9]*?)"(.*)>' . $term . '<\\/a>/', 'Found ' . $term);
}