diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-11 23:25:05 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-11 23:25:05 -0500 |
commit | 6f58aa16f0066d59c9e16a855ab1886d72f8d472 (patch) | |
tree | 2dcaaa07078853902992aa8a8c4e066f44dfd540 /modules/taxonomy/taxonomy.test | |
parent | 60dcf9501d74d916e8e06c2e8682322186bbad05 (diff) | |
download | brdo-6f58aa16f0066d59c9e16a855ab1886d72f8d472.tar.gz brdo-6f58aa16f0066d59c9e16a855ab1886d72f8d472.tar.bz2 |
Issue #1391384 by yched, oriol_e9g: Fixed Wrong static clear on taxonomy_vocabulary_save().
Diffstat (limited to 'modules/taxonomy/taxonomy.test')
-rw-r--r-- | modules/taxonomy/taxonomy.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index eb1324337..0a5bdf340 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -1290,10 +1290,16 @@ class TaxonomyTermFieldTestCase extends TaxonomyWebTestCase { ); field_update_field($this->field); // Change the machine name. + $old_name = $this->vocabulary->machine_name; $new_name = drupal_strtolower($this->randomName()); $this->vocabulary->machine_name = $new_name; taxonomy_vocabulary_save($this->vocabulary); + // Check that entity bundles are properly updated. + $info = entity_get_info('taxonomy_term'); + $this->assertFalse(isset($info['bundles'][$old_name]), t('The old bundle name does not appear in entity_get_info().')); + $this->assertTrue(isset($info['bundles'][$new_name]), t('The new bundle name appears in entity_get_info().')); + // Check that the field instance is still attached to the vocabulary. $field = field_info_field($this->field_name); $allowed_values = $field['settings']['allowed_values']; |