From a6e184ddbcc940c2be61ed8f1688b1dfb6162104 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- 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 3ce3f7812d..78cc109062 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.11.0