Commit fcc8056d authored by alexpott's avatar alexpott

Issue #2137801 by Berdir: Refactor entity storage to load field values before...

Issue #2137801 by Berdir: Refactor entity storage to load field values before instantiating entity objects
parent cb230c2f
......@@ -141,6 +141,11 @@ protected function setUp() {
}
$this->entities = entity_load_multiple($this->entity_type);
foreach ($this->entities as $entity) {
// This test relies on the entities having stale field definitions
// so that the deleted field can be accessed on them. Access the field
// now, so that they are always loaded.
$entity->bf_1->value;
// Also keep track of the entities per bundle.
$this->entities_by_bundles[$entity->bundle()][$entity->id()] = $entity;
}
......
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