public function UserMatcherTest::testUserMatcherWidthDefaultConfiguration in Linkit 8.5
Tests user matcher.
File
- tests/
src/ Kernel/ Matchers/ UserMatcherTest.php, line 70
Class
- UserMatcherTest
- Tests user matcher.
Namespace
Drupal\Tests\linkit\Kernel\MatchersCode
public function testUserMatcherWidthDefaultConfiguration() {
/** @var \Drupal\linkit\MatcherInterface $plugin */
$plugin = $this->manager
->createInstance('entity:user', []);
$suggestions = $plugin
->execute('Lorem');
$this
->assertEquals(4, count($suggestions
->getSuggestions()), 'Correct number of suggestions');
}