You are here

function TermMatcherTest::testTermMatcherWidthDefaultConfiguration in Linkit 8.4

Tests term matcher with default configuration.

File

src/Tests/Matchers/TermMatcherTest.php, line 110
Contains \Drupal\linkit\Tests\Matchers\TermMatcherTest.

Class

TermMatcherTest
Tests term matcher.

Namespace

Drupal\linkit\Tests\Matchers

Code

function testTermMatcherWidthDefaultConfiguration() {

  /** @var \Drupal\linkit\MatcherInterface $plugin */
  $plugin = $this->manager
    ->createInstance('entity:taxonomy_term', []);
  $matches = $plugin
    ->getMatches('foo');
  $this
    ->assertEqual(5, count($matches), 'Correct number of matches');
}