Issue #2087449 by andypost: Fixed broken tests FieldAttachOtherTest->testFieldAttachCache().
parent
f32e302e03
commit
670e43b51e
|
@ -282,7 +282,7 @@ class FieldAttachOtherTest extends FieldUnitTestBase {
|
||||||
$this->assertEqual($cache->data[$this->field_name_2][$langcode], $values, 'Cached: correct cache entry on load');
|
$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.
|
// 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(
|
$entity = entity_create($entity_type, array(
|
||||||
'type' => $entity_type,
|
'type' => $entity_type,
|
||||||
'id' => $entity->id(),
|
'id' => $entity->id(),
|
||||||
|
@ -302,8 +302,8 @@ class FieldAttachOtherTest extends FieldUnitTestBase {
|
||||||
'type' => $entity_type,
|
'type' => $entity_type,
|
||||||
'id' => $entity->id(),
|
'id' => $entity->id(),
|
||||||
));
|
));
|
||||||
$values = $this->_generateTestFieldValues($this->field_name_2['cardinality']);
|
$values = $this->_generateTestFieldValues($this->field_2->getFieldCardinality());
|
||||||
$entity->{$this->field_name} = $values;
|
$entity->{$this->field_name_2} = $values;
|
||||||
$entity->setNewRevision();
|
$entity->setNewRevision();
|
||||||
$entity->save();
|
$entity->save();
|
||||||
$this->assertFalse(cache('field')->get($cid), 'Cached: no cache entry on new revision creation');
|
$this->assertFalse(cache('field')->get($cid), 'Cached: no cache entry on new revision creation');
|
||||||
|
|
Loading…
Reference in New Issue