summaryrefslogtreecommitdiff
path: root/modules/field/tests
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-08-29 23:12:18 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-08-29 23:12:18 -0700
commit16b5120350eccb2f40c1eea6b2a854bdf9dc87bb (patch)
tree0b5529208bc57030887b111fd996a6c04acf91eb /modules/field/tests
parentb9f87d85b5e9e8544b81d26ab17859a28ef64d17 (diff)
downloadbrdo-16b5120350eccb2f40c1eea6b2a854bdf9dc87bb.tar.gz
brdo-16b5120350eccb2f40c1eea6b2a854bdf9dc87bb.tar.bz2
Issue #943772 by jpsoto, yched, catch, bojanz, pillarsdotnet, steinmb: Fixed field_delete_field() and others fail for inactive fields.
Diffstat (limited to 'modules/field/tests')
-rw-r--r--modules/field/tests/field.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test
index ebb1c9f91..669fc37cf 100644
--- a/modules/field/tests/field.test
+++ b/modules/field/tests/field.test
@@ -2356,6 +2356,7 @@ class FieldCrudTestCase extends FieldTestCase {
$this->assertTrue($field_definition <= $field, t('The field was properly read.'));
module_disable($modules, FALSE);
+ drupal_flush_all_caches();
$fields = field_read_fields(array('field_name' => $field_name), array('include_inactive' => TRUE));
$this->assertTrue(isset($fields[$field_name]) && $field_definition < $field, t('The field is properly read when explicitly fetching inactive fields.'));
@@ -2368,6 +2369,7 @@ class FieldCrudTestCase extends FieldTestCase {
$module = array_shift($modules);
module_enable(array($module), FALSE);
+ drupal_flush_all_caches();
}
// Check that the field is active again after all modules have been