Bugzilla – Attachment 68128 Details for
Bug 19441
Several tests are failing on 16.05.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19441: Fix AutomaticItemModificationByAge.t
Bug-19441-Fix-AutomaticItemModificationByAget.patch (text/plain), 1.70 KB, created by
Mark Tompsett
on 2017-10-14 04:01:05 UTC
(
hide
)
Description:
Bug 19441: Fix AutomaticItemModificationByAge.t
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-10-14 04:01:05 UTC
Size:
1.70 KB
patch
obsolete
>From bb9365289b415b190b71515a0e5d0656b207e1af Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 9 Oct 2017 18:25:36 -0300 >Subject: [PATCH] Bug 19441: Fix AutomaticItemModificationByAge.t > >Koha::Caches does not exist in 16.05.x > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/db_dependent/Items/AutomaticItemModificationByAge.t | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Items/AutomaticItemModificationByAge.t b/t/db_dependent/Items/AutomaticItemModificationByAge.t >index 3ce3f78..78cc109 100644 >--- a/t/db_dependent/Items/AutomaticItemModificationByAge.t >+++ b/t/db_dependent/Items/AutomaticItemModificationByAge.t >@@ -10,6 +10,7 @@ use DateTime::Duration; > use C4::Biblio; > use C4::Context; > use C4::Items; >+use Koha::Cache; > use Koha::DateUtils; > use t::lib::TestBuilder; > >@@ -37,7 +38,7 @@ $dbh->do(qq| > |, undef, $new_tagfield, $frameworkcode); > > # Clear cache >-my $cache = Koha::Caches->get_instance(); >+my $cache = Koha::Cache->get_instance(); > $cache->clear_from_cache("MarcStructure-0-$frameworkcode"); > $cache->clear_from_cache("MarcStructure-1-$frameworkcode"); > $cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode"); >@@ -299,7 +300,7 @@ $modified_item = C4::Items::GetItem( $itemnumber ); > is( $modified_item->{new_status}, 'another_new_updated_value', q|ToggleNewStatus: conditions on biblioitems|); > > # Clear cache >-$cache = Koha::Caches->get_instance(); >+$cache = Koha::Cache->get_instance(); > $cache->clear_from_cache("MarcStructure-0-$frameworkcode"); > $cache->clear_from_cache("MarcStructure-1-$frameworkcode"); > $cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode"); >-- >2.1.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 19441
:
67852
|
67853
|
67854
|
67855
|
67856
|
67957
|
68126
|
68127
| 68128 |
68129
|
68130
|
68131