Commit c09d2791 authored by Dries's avatar Dries

- Issue #2024833 by tim.plunkett: missing conversions.

parent b5155ee3
......@@ -455,7 +455,7 @@ function testEntityTranslationAPI() {
// Check that per-language defaults are properly populated.
$entity = $this->reloadEntity($entity);
$instance_id = implode('.', array($entity->entityType(), $entity->bundle(), $this->field_name));
$instances = $this->entityManager->getStorageController('field_instance')->load(array($instance_id));
$instances = $this->entityManager->getStorageController('field_instance')->loadMultiple(array($instance_id));
$instance = reset($instances);
$instance['default_value_function'] = 'entity_test_field_default_value';
$instance->save();
......
......@@ -94,7 +94,7 @@ protected function reloadEntity(EntityInterface $entity) {
$ids = array($entity->id());
$controller = $this->entityManager->getStorageController($entity->entityType());
$controller->resetCache($ids);
$entities = $controller->load($ids);
$entities = $controller->loadMultiple($ids);
return reset($entities);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment