You are here

public function ConfigEntityAdapterTest::testEntityDeriver in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php \Drupal\KernelTests\Core\Entity\ConfigEntityAdapterTest::testEntityDeriver()
  2. 10 core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php \Drupal\KernelTests\Core\Entity\ConfigEntityAdapterTest::testEntityDeriver()

@covers \Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver::getDerivativeDefinitions

File

core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php, line 54

Class

ConfigEntityAdapterTest
Tests entity adapter for configuration entities.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testEntityDeriver() {
  $definition = \Drupal::typedDataManager()
    ->getDefinition('entity:config_test');
  $this
    ->assertEquals(ConfigEntityAdapter::class, $definition['class']);
}