From 8409f5dcd454432f66173ee6d32d58a08d2ca7f5 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 30 May 2008 07:07:20 +0000 Subject: [PATCH] clean up old commerce macro tests and have the upgrade script remove them for the user --- docs/upgrades/upgrade_7.5.10-7.5.11.pl | 3 +++ t/Macro/Product.t | 37 -------------------------- t/Macro/SubscriptionItem.t | 37 -------------------------- t/Macro/SubscriptionItemPurchaseUrl.t | 37 -------------------------- 4 files changed, 3 insertions(+), 111 deletions(-) delete mode 100644 t/Macro/Product.t delete mode 100644 t/Macro/SubscriptionItem.t delete mode 100644 t/Macro/SubscriptionItemPurchaseUrl.t diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index c1ba7a28a..7952f8495 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -1071,11 +1071,14 @@ $session->db->write("delete from WorkflowActivity where className='WebGUI::Workf unlink '../../lib/WebGUI/Macro/Product.pm'; unlink '../../lib/WebGUI/Help/Macro_Product.pm'; unlink '../../lib/WebGUI/i18n/English/Macro_Product.pm'; + unlink '../../t/Macro/Product.t'; unlink '../../lib/WebGUI/Macro/SubscriptionItem.pm'; unlink '../../lib/WebGUI/Macro/SubscriptionItemPurchaseUrl.pm'; unlink '../../lib/WebGUI/Help/Macro_SubscriptionItem.pm'; unlink '../../lib/WebGUI/i18n/English/Macro_SubscriptionItem.pm'; + unlink '../../t/Macro/SubscriptionItem.t'; + unlink '../../t/Macro/SubscriptionItemPurchaseUrl.t'; unlink '../../lib/WebGUI/Operation/ProductManager.pm'; unlink '../../lib/WebGUI/Help/ProductManager.pm'; diff --git a/t/Macro/Product.t b/t/Macro/Product.t deleted file mode 100644 index 1888149aa..000000000 --- a/t/Macro/Product.t +++ /dev/null @@ -1,37 +0,0 @@ -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2008 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -use FindBin; -use strict; -use lib "$FindBin::Bin/../lib"; - -use WebGUI::Test; -use WebGUI::Session; -use HTML::TokeParser; - -use Test::More; # increment this value for each test you create - -my $session = WebGUI::Test->session; - -my $numTests = 0; - -$numTests += 1; #For the use_ok - -plan tests => $numTests; - -my $macro = 'WebGUI::Macro::Product'; -my $loaded = use_ok($macro); - -SKIP: { - -skip "Unable to load $macro", $numTests-1 unless $loaded; - -} - diff --git a/t/Macro/SubscriptionItem.t b/t/Macro/SubscriptionItem.t deleted file mode 100644 index 9e0dda537..000000000 --- a/t/Macro/SubscriptionItem.t +++ /dev/null @@ -1,37 +0,0 @@ -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2008 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -use FindBin; -use strict; -use lib "$FindBin::Bin/../lib"; - -use WebGUI::Test; -use WebGUI::Session; -use HTML::TokeParser; - -use Test::More; # increment this value for each test you create - -my $session = WebGUI::Test->session; - -my $numTests = 0; - -$numTests += 1; #For the use_ok - -plan tests => $numTests; - -my $macro = 'WebGUI::Macro::SubscriptionItem'; -my $loaded = use_ok($macro); - -SKIP: { - -skip "Unable to load $macro", $numTests-1 unless $loaded; - -} - diff --git a/t/Macro/SubscriptionItemPurchaseUrl.t b/t/Macro/SubscriptionItemPurchaseUrl.t deleted file mode 100644 index ca65465cf..000000000 --- a/t/Macro/SubscriptionItemPurchaseUrl.t +++ /dev/null @@ -1,37 +0,0 @@ -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2008 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -use FindBin; -use strict; -use lib "$FindBin::Bin/../lib"; - -use WebGUI::Test; -use WebGUI::Session; -use HTML::TokeParser; - -use Test::More; # increment this value for each test you create - -my $session = WebGUI::Test->session; - -my $numTests = 0; - -$numTests += 1; #For the use_ok - -plan tests => $numTests; - -my $macro = 'WebGUI::Macro::SubscriptionItemPurchaseUrl'; -my $loaded = use_ok($macro); - -SKIP: { - -skip "Unable to load $macro", $numTests-1 unless $loaded; - -} -