$this->
assertFalse(isset($data['revision_data_table'
]));
} /**
* Tests data_table support.
*/
public function testDataTable() { $entity_type =
$this->baseEntityType
->
set('data_table', 'entity_test_mul_property_data'
) ->
set('id', 'entity_test_mul'
) ->
set('translatable', TRUE
) ->
setKey('label', 'label'
);
$this->
setUpEntityType($entity_type);
// Tests the join definition between the base and the data table.
$data =
$this->entityTypeManager->
getHandler('entity_test_mul', 'views_data'
)->
getViewsData();
// TODO: change the base table in the entity type definition to match the
// changed entity ID.
$base_views_data =
$data['entity_test'
];
// Ensure that the base table is set to the data table.
$this->
assertEquals('id',
$data['entity_test_mul_property_data'
]['table'
]['base'
]['field'
]);