You are here

protected function CerBasicTestCase::reload in Corresponding Entity References 7.3

Return value

EntityDrupalWrapper

2 calls to CerBasicTestCase::reload()
CerBasicTestCase::testCreate in tests/CerBasicTestCase.test
CerBasicTestCase::testUpdateChangeTarget in tests/CerBasicTestCase.test

File

tests/CerBasicTestCase.test, line 127

Class

CerBasicTestCase

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]);
}