Bug 17599: (QA followup) Remove userenv warning
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
6edbd47a44
commit
7953beeffd
1 changed files with 3 additions and 6 deletions
|
@ -41,12 +41,6 @@ BEGIN {
|
||||||
require_ok('C4::Reserves');
|
require_ok('C4::Reserves');
|
||||||
}
|
}
|
||||||
|
|
||||||
# a very minimal mack of userenv for use by the test of DelItemCheck
|
|
||||||
my $module = new Test::MockModule('C4::Context');
|
|
||||||
$module->mock('userenv', sub {
|
|
||||||
{ }
|
|
||||||
});
|
|
||||||
|
|
||||||
# Start transaction
|
# Start transaction
|
||||||
my $database = Koha::Database->new();
|
my $database = Koha::Database->new();
|
||||||
my $schema = $database->schema();
|
my $schema = $database->schema();
|
||||||
|
@ -70,6 +64,9 @@ my $category_2 = $builder->build({ source => 'Category' })->{ categorycode };
|
||||||
my $itemtype = $builder->build(
|
my $itemtype = $builder->build(
|
||||||
{ source => 'Itemtype', value => { notforloan => undef } } )->{itemtype};
|
{ source => 'Itemtype', value => { notforloan => undef } } )->{itemtype};
|
||||||
|
|
||||||
|
C4::Context->set_userenv(
|
||||||
|
undef, undef, undef, undef, undef, undef, $branch_1
|
||||||
|
);
|
||||||
|
|
||||||
# Create a helper biblio
|
# Create a helper biblio
|
||||||
my $bib = MARC::Record->new();
|
my $bib = MARC::Record->new();
|
||||||
|
|
Loading…
Reference in a new issue