diff options
author | David Rothstein <drothstein@gmail.com> | 2013-01-27 16:21:18 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-01-27 16:21:18 -0500 |
commit | bd1dc1fdbb428bc745f26b1183e1052603cd1d6e (patch) | |
tree | a695ab119da16a609e7b7637bd882302a0230f30 /modules/field_ui/field_ui.test | |
parent | 6a4df4adedc949f7441493e75e8ae73f847bfa10 (diff) | |
download | brdo-bd1dc1fdbb428bc745f26b1183e1052603cd1d6e.tar.gz brdo-bd1dc1fdbb428bc745f26b1183e1052603cd1d6e.tar.bz2 |
Issue #1040790 by yched, swentel, geerlingguy, justin.randell, Berdir | catch: Fixed _field_info_collate_fields() memory usage.
Diffstat (limited to 'modules/field_ui/field_ui.test')
-rw-r--r-- | modules/field_ui/field_ui.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test index d0a822a82..b67b70e2a 100644 --- a/modules/field_ui/field_ui.test +++ b/modules/field_ui/field_ui.test @@ -269,7 +269,7 @@ class FieldUIManageFieldsTestCase extends FieldUITestCase { */ function assertFieldSettings($bundle, $field_name, $string = 'dummy test string', $entity_type = 'node') { // Reset the fields info. - _field_info_collate_fields(TRUE); + field_info_cache_clear(); // Assert field settings. $field = field_info_field($field_name); $this->assertTrue($field['settings']['test_field_setting'] == $string, t('Field settings were found.')); @@ -360,7 +360,7 @@ class FieldUIManageFieldsTestCase extends FieldUITestCase { $this->fieldUIDeleteField($bundle_path1, $this->field_name, $this->field_label, $this->type); // Reset the fields info. - _field_info_collate_fields(TRUE); + field_info_cache_clear(); // Check that the field instance was deleted. $this->assertNull(field_info_instance('node', $this->field_name, $this->type), t('Field instance was deleted.')); // Check that the field was not deleted @@ -370,7 +370,7 @@ class FieldUIManageFieldsTestCase extends FieldUITestCase { $this->fieldUIDeleteField($bundle_path2, $this->field_name, $this->field_label, $type_name2); // Reset the fields info. - _field_info_collate_fields(TRUE); + field_info_cache_clear(); // Check that the field instance was deleted. $this->assertNull(field_info_instance('node', $this->field_name, $type_name2), t('Field instance was deleted.')); // Check that the field was deleted too. |