diff --git a/core/modules/taxonomy/taxonomy.test b/core/modules/taxonomy/taxonomy.test index 3e6301a..0b9a32a 100644 --- a/core/modules/taxonomy/taxonomy.test +++ b/core/modules/taxonomy/taxonomy.test @@ -579,9 +579,9 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $instance['bundle'] = 'page'; field_create_instance($instance); $terms = array( - $this->randomName(), - $this->randomName() . ', ' . $this->randomName(), - $this->randomName(), + 'term1' => $this->randomName(), + 'term2' => $this->randomName() . ', ' . $this->randomName(), + 'term3' => $this->randomName(), ); $edit = array(); @@ -611,7 +611,11 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { } // Get the created terms. - list($term1, $term2, $term3) = array_values(taxonomy_term_load_multiple(FALSE)); + foreach ($terms as $key => $term) { + $terms[$key] = taxonomy_get_term_by_name($term); + $terms[$key] = reset($terms[$key]); + } + extract($terms); // Delete term 1. $this->drupalPost('taxonomy/term/' . $term1->tid . '/edit', array(), t('Delete'));