You are here

function UserMatcherTest::testUserMatcherWidthDefaultConfiguration in Linkit 8.4

Tests user matcher.

File

src/Tests/Matchers/UserMatcherTest.php, line 67
Contains \Drupal\linkit\Tests\Matchers\UserMatcherTest.

Class

UserMatcherTest
Tests user matcher.

Namespace

Drupal\linkit\Tests\Matchers

Code

function testUserMatcherWidthDefaultConfiguration() {

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