You are here

public function NodeMatcherTest::testNodeMatcherWidthDefaultConfiguration in Linkit 8.5

Tests node matcher.

File

tests/src/Kernel/Matchers/NodeMatcherTest.php, line 100

Class

NodeMatcherTest
Tests node matcher.

Namespace

Drupal\Tests\linkit\Kernel\Matchers

Code

public function testNodeMatcherWidthDefaultConfiguration() {

  /** @var \Drupal\linkit\MatcherInterface $plugin */
  $plugin = $this->manager
    ->createInstance('entity:node', []);
  $suggestions = $plugin
    ->execute('Lorem');
  $this
    ->assertEquals(3, count($suggestions
    ->getSuggestions()), 'Correct number of suggestions');
}