Lines 41-52
BEGIN {
Link Here
|
41 |
require_ok('C4::Reserves'); |
41 |
require_ok('C4::Reserves'); |
42 |
} |
42 |
} |
43 |
|
43 |
|
44 |
# a very minimal mack of userenv for use by the test of DelItemCheck |
|
|
45 |
my $module = new Test::MockModule('C4::Context'); |
46 |
$module->mock('userenv', sub { |
47 |
{ } |
48 |
}); |
49 |
|
50 |
# Start transaction |
44 |
# Start transaction |
51 |
my $database = Koha::Database->new(); |
45 |
my $database = Koha::Database->new(); |
52 |
my $schema = $database->schema(); |
46 |
my $schema = $database->schema(); |
Lines 70-75
my $category_2 = $builder->build({ source => 'Category' })->{ categorycode };
Link Here
|
70 |
my $itemtype = $builder->build( |
64 |
my $itemtype = $builder->build( |
71 |
{ source => 'Itemtype', value => { notforloan => undef } } )->{itemtype}; |
65 |
{ source => 'Itemtype', value => { notforloan => undef } } )->{itemtype}; |
72 |
|
66 |
|
|
|
67 |
C4::Context->set_userenv( |
68 |
undef, undef, undef, undef, undef, undef, $branch_1 |
69 |
); |
73 |
|
70 |
|
74 |
# Create a helper biblio |
71 |
# Create a helper biblio |
75 |
my $bib = MARC::Record->new(); |
72 |
my $bib = MARC::Record->new(); |
76 |
- |
|
|