diff options
author | David Rothstein <drothstein@gmail.com> | 2013-08-05 02:31:06 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-08-05 02:31:06 -0400 |
commit | 410bc91123780ae828d80a554bbed2cbe03a34b3 (patch) | |
tree | 2c41a994ac5fba1229369c974300550bf1e599a7 /modules/taxonomy | |
parent | ed0d823ea78907e4e498dbdd7a49721b5897b499 (diff) | |
download | brdo-410bc91123780ae828d80a554bbed2cbe03a34b3.tar.gz brdo-410bc91123780ae828d80a554bbed2cbe03a34b3.tar.bz2 |
Issue #2011780 by pdrake: Fixed Taxonomy vocabulary interface test assumes auto-increment increment of 1.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 270ed5802..665f9aebb 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -170,7 +170,8 @@ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase { // Check the created vocabulary. $vocabularies = taxonomy_get_vocabularies(); - $vid = $vocabularies[count($vocabularies) - 1]->vid; + $vocabularies_keys = array_keys($vocabularies); + $vid = $vocabularies[end($vocabularies_keys)]->vid; entity_get_controller('taxonomy_vocabulary')->resetCache(); $vocabulary = taxonomy_vocabulary_load($vid); $this->assertTrue($vocabulary, 'Vocabulary found in database.'); |