@@ -, +, @@ --------- -- fails -- apply this patch -- succeeds -- run koha qa test tools --- t/db_dependent/Reserves.t | 5 +++++ 1 file changed, 5 insertions(+) --- a/t/db_dependent/Reserves.t +++ a/t/db_dependent/Reserves.t @@ -32,6 +32,7 @@ use C4::Circulation; use C4::Items; use C4::Members; use C4::Reserves; +use Koha::Cache; use Koha::DateUtils; use Koha::Holds; use Koha::Libraries; @@ -52,6 +53,10 @@ my $builder = t::lib::TestBuilder->new; # Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached $dbh->do("update marc_subfield_structure set kohafield='biblioitems.agerestriction' where tagfield='521' and tagsubfield='a'"); +# Attempt to reforce the cache to fill with this new structure record. +my $cache = Koha::Cache->new(); +$cache->flush_all(); + ## Setup Test # Add branches my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode }; --