View | Details | Raw Unified | Return to bug 19441
Collapse All | Expand All

(-)a/t/db_dependent/Items/AutomaticItemModificationByAge.t (-3 / +3 lines)
Lines 10-15 use DateTime::Duration; Link Here
10
use C4::Biblio;
10
use C4::Biblio;
11
use C4::Context;
11
use C4::Context;
12
use C4::Items;
12
use C4::Items;
13
use Koha::Cache;
13
use Koha::DateUtils;
14
use Koha::DateUtils;
14
use t::lib::TestBuilder;
15
use t::lib::TestBuilder;
15
16
Lines 37-43 $dbh->do(qq| Link Here
37
|, undef, $new_tagfield, $frameworkcode);
38
|, undef, $new_tagfield, $frameworkcode);
38
39
39
# Clear cache
40
# Clear cache
40
my $cache = Koha::Caches->get_instance();
41
my $cache = Koha::Cache->get_instance();
41
$cache->clear_from_cache("MarcStructure-0-$frameworkcode");
42
$cache->clear_from_cache("MarcStructure-0-$frameworkcode");
42
$cache->clear_from_cache("MarcStructure-1-$frameworkcode");
43
$cache->clear_from_cache("MarcStructure-1-$frameworkcode");
43
$cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode");
44
$cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode");
Lines 299-305 $modified_item = C4::Items::GetItem( $itemnumber ); Link Here
299
is( $modified_item->{new_status}, 'another_new_updated_value', q|ToggleNewStatus: conditions on biblioitems|);
300
is( $modified_item->{new_status}, 'another_new_updated_value', q|ToggleNewStatus: conditions on biblioitems|);
300
301
301
# Clear cache
302
# Clear cache
302
$cache = Koha::Caches->get_instance();
303
$cache = Koha::Cache->get_instance();
303
$cache->clear_from_cache("MarcStructure-0-$frameworkcode");
304
$cache->clear_from_cache("MarcStructure-0-$frameworkcode");
304
$cache->clear_from_cache("MarcStructure-1-$frameworkcode");
305
$cache->clear_from_cache("MarcStructure-1-$frameworkcode");
305
$cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode");
306
$cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode");
306
- 

Return to bug 19441