You are here

public function FeedsMapperTaxonomyTestCase::assertNoTaxonomyTerm in Feeds 7.2

Asserts that the term does not exist on a node page.

1 call to FeedsMapperTaxonomyTestCase::assertNoTaxonomyTerm()
FeedsMapperTaxonomyTestCase::testSearchByName in tests/feeds_mapper_taxonomy.test
Tests searching taxonomy terms by name.

File

tests/feeds_mapper_taxonomy.test, line 703
Contains FeedsMapperTaxonomyTestCase.

Class

FeedsMapperTaxonomyTestCase
Test case for taxonomy mapper mappers/taxonomy.inc.

Code

public function assertNoTaxonomyTerm($term) {
  $term = check_plain($term);
  $this
    ->assertNoPattern('/<a href="\\/.*taxonomy\\/term\\/[0-9]+">' . $term . '<\\/a>/', 'Did not find ' . $term);
}