Bugzilla – Attachment 25975 Details for
Bug 11148
Two routines are useless in Koha::DateUtils
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11148: Previous patch delete usefull unit test
Bug-11148-Previous-patch-delete-usefull-unit-test.patch (text/plain), 1.28 KB, created by
Jonathan Druart
on 2014-03-10 08:52:04 UTC
(
hide
)
Description:
Bug 11148: Previous patch delete usefull unit test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-03-10 08:52:04 UTC
Size:
1.28 KB
patch
obsolete
>From cbc6a83ed12c592de209511fe4d3f31bf17c5a97 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 13 Jan 2014 10:17:47 +0100 >Subject: [PATCH] Bug 11148: Previous patch delete usefull unit test > >--- > t/DateUtils.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/DateUtils.t b/t/DateUtils.t >index de34d70..8647de4 100755 >--- a/t/DateUtils.t >+++ b/t/DateUtils.t >@@ -5,7 +5,7 @@ use DateTime; > use DateTime::TimeZone; > > use C4::Context; >-use Test::More tests => 31; >+use Test::More tests => 32; > use Test::MockModule; > > BEGIN { use_ok('Koha::DateUtils'); } >@@ -67,6 +67,10 @@ cmp_ok $date_string, 'eq', '16/06/2011 12:00', 'metric output'; > $date_string = output_pref({ dt => $dt, dateformat => 'metric', timeformat => 'notime', dateonly => 1 }); > cmp_ok $date_string, 'eq', '16/06/2011', 'metric output (date only)'; > >+$date_string = output_pref({ dt => $dt, dateformat => 'metric', timeformat => '24hr' }); >+cmp_ok $date_string, 'eq', '16/06/2011 12:00', >+ 'output_pref preserves non midnight HH:SS'; >+ > my $dear_dirty_dublin = DateTime::TimeZone->new( name => 'Europe/Dublin' ); > my $new_dt = dt_from_string( '16/06/2011', 'metric', $dear_dirty_dublin ); > isa_ok( $new_dt, 'DateTime', 'Create DateTime with different timezone' ); >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11148
:
22470
|
22759
|
23092
|
23239
|
23253
|
24219
|
25973
|
25974
|
25975
|
26212
|
26213
|
26214
|
26278
|
26279
|
26280