diff options
Diffstat (limited to 't')
-rw-r--r-- | t/007util.t | 14 |
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 |