Bugzilla – Attachment 44122 Details for
Bug 14977
Remove C4::Dates from files t/db_dependent/*.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14977 - Followup to fix issue with NewsChannels.t
Bug-14977---Followup-to-fix-issue-with-NewsChannel.patch (text/plain), 1.76 KB, created by
Jonathan Druart
on 2015-10-28 11:03:45 UTC
(
hide
)
Description:
Bug 14977 - Followup to fix issue with NewsChannels.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-28 11:03:45 UTC
Size:
1.76 KB
patch
obsolete
>From 64319b1fbe97da05964edbe553c1acfe7d911724 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 27 Oct 2015 20:06:11 +0100 >Subject: [PATCH] Bug 14977 - Followup to fix issue with NewsChannels.t > >The problem was that get_opac_new returns dates already syspref-formatted. > >To test: >- Apply patch >- Verify that t/db_dependent/NewsChannels.t does not fail. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/NewsChannels.t | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/NewsChannels.t b/t/db_dependent/NewsChannels.t >index fb32df5..2f38c78 100644 >--- a/t/db_dependent/NewsChannels.t >+++ b/t/db_dependent/NewsChannels.t >@@ -123,10 +123,10 @@ $rv = upd_opac_new($href_entry2); > ok( $rv == 1, 'Successfully updated second dummy news item!' ); > > # Test get_opac_new (single news item) >-$timestamp1 = output_pref( { dt => dt_from_string( $timestamp1 ), dateonly => 1, dateformat => 'iso' } ); >-$expirationdate1 = output_pref( { dt => dt_from_string( $expirationdate1 ), dateonly => 1, dateformat => 'iso' } ); >-$timestamp2 = output_pref( { dt => dt_from_string( $timestamp2 ), dateonly => 1, dateformat => 'iso' } ); >-$expirationdate2 = output_pref( { dt => dt_from_string( $expirationdate2) , dateonly => 1, dateformat => 'iso' } ); >+$timestamp1 = output_pref( { dt => dt_from_string( $timestamp1 ), dateonly => 1 } ); >+$expirationdate1 = output_pref( { dt => dt_from_string( $expirationdate1 ), dateonly => 1 } ); >+$timestamp2 = output_pref( { dt => dt_from_string( $timestamp2 ), dateonly => 1 } ); >+$expirationdate2 = output_pref( { dt => dt_from_string( $expirationdate2) , dateonly => 1 } ); > > is_deeply( > get_opac_new($idnew1), >-- >2.1.0
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 14977
:
43218
|
44008
|
44009
|
44010
|
44100
|
44121
| 44122