Commit c09d2791 authored by Dries's avatar Dries

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

parent b5155ee3
...@@ -455,7 +455,7 @@ function testEntityTranslationAPI() { ...@@ -455,7 +455,7 @@ function testEntityTranslationAPI() {
// Check that per-language defaults are properly populated. // Check that per-language defaults are properly populated.
$entity = $this->reloadEntity($entity); $entity = $this->reloadEntity($entity);
$instance_id = implode('.', array($entity->entityType(), $entity->bundle(), $this->field_name)); $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 = reset($instances);
$instance['default_value_function'] = 'entity_test_field_default_value'; $instance['default_value_function'] = 'entity_test_field_default_value';
$instance->save(); $instance->save();
......
...@@ -94,7 +94,7 @@ protected function reloadEntity(EntityInterface $entity) { ...@@ -94,7 +94,7 @@ protected function reloadEntity(EntityInterface $entity) {
$ids = array($entity->id()); $ids = array($entity->id());
$controller = $this->entityManager->getStorageController($entity->entityType()); $controller = $this->entityManager->getStorageController($entity->entityType());
$controller->resetCache($ids); $controller->resetCache($ids);
$entities = $controller->load($ids); $entities = $controller->loadMultiple($ids);
return reset($entities); 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