public function FeedsMapperTaxonomyTestCase::assertTaxonomyTerm in Feeds 7.2
Same name and namespace in other branches
- 6 tests/feeds_mapper_taxonomy.test \FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()
- 7 tests/feeds_mapper_taxonomy.test \FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()
Finds node style taxonomy term markup in DOM.
2 calls to FeedsMapperTaxonomyTestCase::assertTaxonomyTerm()
- FeedsMapperTaxonomyTestCase::testInheritTaxonomy in tests/
feeds_mapper_taxonomy.test - Tests inheriting taxonomy from the feed node.
- FeedsMapperTaxonomyTestCase::testSearchByName in tests/
feeds_mapper_taxonomy.test - Tests searching taxonomy terms by name.
File
- tests/
feeds_mapper_taxonomy.test, line 695 - Contains FeedsMapperTaxonomyTestCase.
Class
- FeedsMapperTaxonomyTestCase
- Test case for taxonomy mapper mappers/taxonomy.inc.
Code
public function assertTaxonomyTerm($term) {
$term = check_plain($term);
$this
->assertPattern('/<a href="\\/.*taxonomy\\/term\\/[0-9]+">' . $term . '<\\/a>/', 'Found ' . $term);
}