From 11cdc6326df20893f6aa4b328cdaed1f34498d2a Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Fri, 20 May 2011 16:41:38 -0400
Subject: [PATCH] Issue #1097686 by solotandem, pillarsdotnet: In UpgradePathTaxonomyTestCase(), the replacement argument for "%old_vid" was not set.

---
 .../simpletest/tests/upgrade/upgrade.taxonomy.test |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
index dadb98e5acd994d2966cd59af6d06152ad905666..07b71a13b1378b73811c53598a5f26992b5fb188 100644
--- a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
+++ b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
@@ -154,15 +154,17 @@ class UpgradePathTaxonomyTestCase extends UpgradePathTestCase {
 
       // nid 1, revision 1 had a bogus record in {term_node} pointing to term
       // ID 0. Make sure we ignored this instead of generating a bogus term.
+      $revisions = node_revision_list($node);
       if ($node->nid == 1) {
         $link = l($term->name, 'taxonomy/term/0');
+        $last_rev = end($revisions);
+        $args['%old_vid'] = $last_rev->vid;
         $this->assertNoRaw($link, t('Bogus term (tid 0) is not displayed on node 1 vid %old_vid.', $args));
       }
 
       // The first 12 nodes have two revisions. For nodes with
       // revisions, check that the oldest revision is associated only
       // to terms whose ID is equal to the node ID or 49 less the node ID.
-      $revisions = node_revision_list($node);
       if ($node->nid < 13) {
         $this->assertEqual(count($revisions), 2, t('Node %nid has two revisions.', $args));
         $last_rev = end($revisions);
-- 
1.7.4.1

