aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-04 17:25:09 +0000
committerlpsolit%gmail.com <>2006-06-04 17:25:09 +0000
commit71d87fd8ebcf45363078a1e5f765ed99e47314e1 (patch)
tree3a5660bd70a0d53a918f5426ebd4040b2f78881e /t
parentPatch for bug 340126: Fix Windows PPM package name for XML::Twig; patch by Vl... (diff)
downloadbugzilla-71d87fd8ebcf45363078a1e5f765ed99e47314e1.tar.gz
bugzilla-71d87fd8ebcf45363078a1e5f765ed99e47314e1.tar.bz2
bugzilla-71d87fd8ebcf45363078a1e5f765ed99e47314e1.zip
Bug 340226: Util.pm shouldn't depend on Bugzilla::Config - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 't')
-rw-r--r--t/007util.t14
1 files changed, 6 insertions, 8 deletions
diff --git a/t/007util.t b/t/007util.t
index 02069dcc1..3adbe0ab4 100644
--- a/t/007util.t
+++ b/t/007util.t
@@ -28,18 +28,16 @@ use lib 't';
use Support::Files;
BEGIN {
- use Test::More tests => 14;
+ use Test::More tests => 15;
+ use_ok(Bugzilla);
use_ok(Bugzilla::Util);
}
-# We need to override the the Param() function so we can get an expected
-# value when Bugzilla::Utim::format_time calls asks for Param('timezone').
+# We need to override Bugzilla->params so we can get an expected value when
+# Bugzilla::Util::format_time() calls ask for the 'timezone' parameter.
# This will also prevent the tests from failing on site that do not have a
-# data/params file containing Param('timezone') yet.
-sub myParam {
- return "TEST" if $_[0] eq 'timezone';
-}
-*::Param = *myParam;
+# data/params file containing 'timezone' yet.
+Bugzilla->params->{'timezone'} = "TEST";
# we don't test the taint functions since that's going to take some more work.
# XXX: test taint functions