From 2de8dbfc9ebf09b348f0a1893070f7a22f33d4f1 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 16 Dec 2007 00:25:00 +0000 Subject: [PATCH] remove test for passthruUrls, since they are now handled by pluggable ops --- t/Asset/Asset.t | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/t/Asset/Asset.t b/t/Asset/Asset.t index 349be2c08..a18724547 100644 --- a/t/Asset/Asset.t +++ b/t/Asset/Asset.t @@ -17,7 +17,7 @@ use WebGUI::Session; use WebGUI::Asset; use WebGUI::Asset::Wobject::Navigation; -use Test::More tests => 39; # increment this value for each test you create +use Test::More tests => 37; # increment this value for each test you create use Test::MockObject; my $session = WebGUI::Test->session; @@ -159,12 +159,9 @@ my $origPassthru = $session->config->get('passthruUrls'); $session->config->set('extrasURL', '/extras'); $session->config->set('uploadsURL', '/uploads'); -$session->config->set('passthruUrls', [qw/pass1 pass2/]); is($importNode->fixUrl('/extras'), '_extras', 'underscore prepended to URLs that match the extrasURL'); is($importNode->fixUrl('/uploads'), '_uploads', 'underscore prepended to URLs that match the uploadsURL'); -is($importNode->fixUrl('/pass1'), '_pass1', 'underscore prepended to URLs that match any passthruUrl 1'); -is($importNode->fixUrl('/pass2'), '_pass2', 'underscore prepended to URLs that match any passthruUrl 2'); #Now that we have verified that extrasURL and uploadsURL both work, just test one. $session->config->set('extrasURL', '/extras1/'); @@ -179,12 +176,6 @@ END: { $session->config->set('extrasURL', $origExtras); $session->config->set('uploadsURL', $origUploads); - if (defined $origPassthru) { - $session->config->set('passthruUrls', $origPassthru); - } - else { - $session->config->delete('passthruUrls'); - } $session->setting->set('urlExtension', $origUrlExtension); }