You are here

public function FeedsMapperTaxonomyTest::assertTaxonomyTerm in Feeds 8.2

Finds node style taxonomy term markup in DOM.

1 call to FeedsMapperTaxonomyTest::assertTaxonomyTerm()
FeedsMapperTaxonomyTest::testSearchByName in lib/Drupal/feeds/Tests/FeedsMapperTaxonomyTest.php
Tests searching taxonomy terms by name.

File

lib/Drupal/feeds/Tests/FeedsMapperTaxonomyTest.php, line 309
Test case for taxonomy mapper mappers/taxonomy.inc.

Class

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

Namespace

Drupal\feeds\Tests

Code

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