public function EntityDeriverTest::testDerivatives in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php \Drupal\KernelTests\Core\Entity\EntityDeriverTest::testDerivatives()
- 10 core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php \Drupal\KernelTests\Core\Entity\EntityDeriverTest::testDerivatives()
Tests that types are derived for entity types with and without bundles.
@dataProvider derivativesProvider
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDeriverTest.php, line 61
Class
- EntityDeriverTest
- Tests EntityDeriver functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
public function testDerivatives($data_type, $expect_exception) {
if ($expect_exception) {
$this
->expectException(PluginNotFoundException::class);
}
$this->typedDataManager
->createDataDefinition($data_type);
}