summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.test
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-01-11 23:25:05 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2012-01-11 23:25:05 -0500
commit6f58aa16f0066d59c9e16a855ab1886d72f8d472 (patch)
tree2dcaaa07078853902992aa8a8c4e066f44dfd540 /modules/taxonomy/taxonomy.test
parent60dcf9501d74d916e8e06c2e8682322186bbad05 (diff)
downloadbrdo-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.test6
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'];