Tests working with the entity based upon the TypedData API.
public function testDataStructureInterfaces() {
// All entity variations have to have the same results.
foreach (entity_test_entity_types() as $entity_type) {
$this
->assertDataStructureInterfaces($entity_type);
}
}