protected function CerBasicTestCase::reload in Corresponding Entity References 7.3
Return value
2 calls to CerBasicTestCase::reload()
File
- tests/
CerBasicTestCase.test, line 127
Class
Code
protected function reload($entity_type, $entity) {
list($id) = entity_extract_IDs($entity_type, $entity);
$entities = entity_load($entity_type, array(
$id,
), NULL, TRUE);
return entity_metadata_wrapper($entity_type, $entities[$id]);
}