diff options
author | lpsolit%gmail.com <> | 2005-05-11 05:30:11 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-05-11 05:30:11 +0200 |
commit | a32c764ba4f84270e5730e643d099b46313e071a (patch) | |
tree | 69f13d696a293e47c41f2ab1af483628e9f87752 /t | |
parent | d5c3b178067c1d9c0c7f5cf7756c1969443410fd (diff) | |
download | bugzilla-a32c764ba4f84270e5730e643d099b46313e071a.tar.gz bugzilla-a32c764ba4f84270e5730e643d099b46313e071a.tar.xz |
Bug 287487: User with no privs can not add comments to bugs that have a deadline field set - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 't')
-rw-r--r-- | t/007util.t | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/t/007util.t b/t/007util.t index 48c925aa3..02069dcc1 100644 --- a/t/007util.t +++ b/t/007util.t @@ -28,8 +28,8 @@ use lib 't'; use Support::Files; BEGIN { - use Test::More tests => 13; - use_ok(Bugzilla::Util); + use Test::More tests => 14; + use_ok(Bugzilla::Util); } # We need to override the the Param() function so we can get an expected @@ -68,8 +68,7 @@ is(min(@list),2,'min()'); is(trim(" fg<*\$%>+=~~ "),'fg<*$%>+=~~','trim()'); #format_time(); -is(format_time("20021123140436"),'2002-11-23 14:04 TEST','format_time("20021123140436")'); is(format_time("2002.11.24 00:05"),'2002-11-24 00:05 TEST','format_time("2002.11.24 00:05")'); is(format_time("2002.11.24 00:05:56"),'2002-11-24 00:05:56 TEST','format_time("2002.11.24 00:05:56")'); - - +is(format_time("2002.11.24 00:05:56", "%Y-%m-%d %R"), '2002-11-24 00:05', 'format_time("2002.11.24 00:05:56", "%Y-%m-%d %R") (with no timezone)'); +is(format_time("2002.11.24 00:05:56", "%Y-%m-%d %R %Z"), '2002-11-24 00:05 TEST', 'format_time("2002.11.24 00:05:56", "%Y-%m-%d %R %Z") (with timezone)'); |