From 410bc91123780ae828d80a554bbed2cbe03a34b3 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 5 Aug 2013 02:31:06 -0400 Subject: Issue #2011780 by pdrake: Fixed Taxonomy vocabulary interface test assumes auto-increment increment of 1. --- modules/taxonomy/taxonomy.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/taxonomy') 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.'); -- cgit v1.2.3