/**
* Tests that types are derived for entity types with and without bundles.
*
* @dataProvider derivativesProvider
*/
public function testDerivatives($data_type,
$expect_exception) { if ($expect_exception) { $this->
expectException(PluginNotFoundException::
class);
} $this->typedDataManager->
createDataDefinition($data_type);
} /**
* Provides test data for ::testDerivatives().
*/
public function derivativesProvider() { return [ 'unbundleable entity type with no bundle type' =>
['entity:user', FALSE
],
'unbundleable entity type with bundle type' =>
['entity:user:user', TRUE
],
'bundleable entity type with no bundle type' =>
['entity:node', FALSE
],
'bundleable entity type with bundle type' =>
[