public function FeedsMapperTaxonomyTest::assertNoTaxonomyTerm in Feeds 8.2
Asserts that the term does not exist on a node page.
1 call to FeedsMapperTaxonomyTest::assertNoTaxonomyTerm()
- FeedsMapperTaxonomyTest::testSearchByName in lib/
Drupal/ feeds/ Tests/ FeedsMapperTaxonomyTest.php - Tests searching taxonomy terms by name.
File
- lib/
Drupal/ feeds/ Tests/ FeedsMapperTaxonomyTest.php, line 317 - Test case for taxonomy mapper mappers/taxonomy.inc.
Class
- FeedsMapperTaxonomyTest
- Class for testing Feeds <em>content</em> mapper.
Namespace
Drupal\feeds\TestsCode
public function assertNoTaxonomyTerm($term) {
$term = check_plain($term);
$this
->assertNoPattern('/<a href="\\/.*taxonomy\\/term\\/[0-9]+">' . $term . '<\\/a>/', 'Did not find ' . $term);
}