public function FeedsMapperTaxonomyTestCase::assertTaxonomyTerm in Feeds 6
Same name and namespace in other branches
- 7.2 tests/feeds_mapper_taxonomy.test \FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()
- 7 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 210 - Test case for taxonomy mapper mappers/taxonomy.inc.
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);
}