Commit 670e43b5 authored by webchick's avatar webchick
Browse files

Issue #2087449 by andypost: Fixed broken tests FieldAttachOtherTest->testFieldAttachCache().

parent f32e302e
......@@ -282,7 +282,7 @@ function testFieldAttachCache() {
$this->assertEqual($cache->data[$this->field_name_2][$langcode], $values, 'Cached: correct cache entry on load');
// Update with different values, and check that the cache entry is wiped.
$values = $this->_generateTestFieldValues($this->field_name_2['cardinality']);
$values = $this->_generateTestFieldValues($this->field_2->getFieldCardinality());
$entity = entity_create($entity_type, array(
'type' => $entity_type,
'id' => $entity->id(),
......@@ -302,8 +302,8 @@ function testFieldAttachCache() {
'type' => $entity_type,
'id' => $entity->id(),
));
$values = $this->_generateTestFieldValues($this->field_name_2['cardinality']);
$entity->{$this->field_name} = $values;
$values = $this->_generateTestFieldValues($this->field_2->getFieldCardinality());
$entity->{$this->field_name_2} = $values;
$entity->setNewRevision();
$entity->save();
$this->assertFalse(cache('field')->get($cid), 'Cached: no cache entry on new revision creation');
......
Supports Markdown
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