Lines 32-37
use C4::Circulation;
Link Here
|
32 |
use C4::Items; |
32 |
use C4::Items; |
33 |
use C4::Members; |
33 |
use C4::Members; |
34 |
use C4::Reserves; |
34 |
use C4::Reserves; |
|
|
35 |
use Koha::Cache; |
35 |
use Koha::DateUtils; |
36 |
use Koha::DateUtils; |
36 |
use Koha::Holds; |
37 |
use Koha::Holds; |
37 |
use Koha::Libraries; |
38 |
use Koha::Libraries; |
Lines 52-57
my $builder = t::lib::TestBuilder->new;
Link Here
|
52 |
# Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached |
53 |
# Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached |
53 |
$dbh->do("update marc_subfield_structure set kohafield='biblioitems.agerestriction' where tagfield='521' and tagsubfield='a'"); |
54 |
$dbh->do("update marc_subfield_structure set kohafield='biblioitems.agerestriction' where tagfield='521' and tagsubfield='a'"); |
54 |
|
55 |
|
|
|
56 |
# Attempt to reforce the cache to fill with this new structure record. |
57 |
my $cache = Koha::Cache->new(); |
58 |
$cache->flush_all(); |
59 |
|
55 |
## Setup Test |
60 |
## Setup Test |
56 |
# Add branches |
61 |
# Add branches |
57 |
my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode }; |
62 |
my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode }; |
58 |
- |
|
|