'`field_test_ref1.field_test3` is not a valid include path.',
],
];
} /**
* @covers ::resolveInternalEntityQueryPath
* @dataProvider resolveInternalEntityQueryPathProvider
*/
public function testResolveInternalEntityQueryPath($expect,
$external_path,
$entity_type_id = 'entity_test_with_bundle',
$bundle = 'bundle1'
) { $resource_type =
$this->resourceTypeRepository->
get($entity_type_id,
$bundle);
$this->
assertEquals($expect,
$this->sut->
resolveInternalEntityQueryPath($resource_type,
$external_path));
} /**
* Provides test cases for ::testResolveInternalEntityQueryPath.
*/
public function resolveInternalEntityQueryPathProvider() { return [ 'config entity as base' =>
[ 'uuid', 'id', 'entity_test_bundle', 'entity_test_bundle',
],
'config entity as target' =>
['type.entity:entity_test_bundle.uuid', 'type.id'
],