You are here

public function EntityMatcherDeriverTest::testDeriver in Linkit 8.5

Tests the deriver.

File

tests/src/Kernel/EntityMatcherDeriverTest.php, line 42

Class

EntityMatcherDeriverTest
Tests the entity matcher deriver.

Namespace

Drupal\Tests\linkit\Kernel

Code

public function testDeriver() {
  $definition = $this->manager
    ->getDefinition('entity:block_content', FALSE);
  $this
    ->assertNull($definition);
  $definition = $this->manager
    ->getDefinition('entity:node', FALSE);
  $this
    ->assertNotNull($definition);
}