Index: taxonomy.module.test =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/tests/taxonomy.module.test,v retrieving revision 1.5 diff -u -r1.5 taxonomy.module.test --- taxonomy.module.test 20 Apr 2006 02:36:12 -0000 1.5 +++ taxonomy.module.test 15 Aug 2006 09:03:05 -0000 @@ -23,7 +23,8 @@ $maxNodes = rand(1, count($nodesList)); $nodes = array(); for($i = 0; $i < $maxNodes; $i++) { - $nodes[] = $nodesList[$i]; + $nodes[$nodesList[$i]] = $nodesList[$i]; + $nodesBak[] = $nodesList[$i]; } $_t = array('vid', 'name', 'description', 'help', 'relations', 'hierarchy', 'multiple', 'required', 'tags', 'module', 'weight', 'nodes'); @@ -33,6 +34,9 @@ // exec save function taxonomy_save_vocabulary($edit); + //after save we use $nodesBak + sort($nodesBak); + $edit['nodes'] = $nodesBak; $vocabularies = taxonomy_get_vocabularies(); foreach($vocabularies as $voc) { if ($voc->name == $name) {