Bug 18651: Fix tests if no circ rule exist
The following test is failing on Jenkins: # Subtest: Handle ids duplication 1..4 ok 1 - No account lines should exist on old issue_id not ok 2 - Two account lines should exist on new issue_id ok 3 - AddReturn should return the issue with the new issue_id ok 4 - If an item is checked-in, it should be moved to old_issues even if the issue_id already existed in the table not ok 4 - Handle ids duplication When no circ rule exist Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ee7969d346
commit
66f435149a
1 changed files with 11 additions and 0 deletions
|
@ -47,6 +47,17 @@ my $schema = Koha::Database->schema;
|
|||
$schema->storage->txn_begin;
|
||||
|
||||
my $builder = t::lib::TestBuilder->new();
|
||||
Koha::IssuingRules->search->delete;
|
||||
my $rule = Koha::IssuingRule->new(
|
||||
{
|
||||
categorycode => '*',
|
||||
itemtype => '*',
|
||||
branchcode => '*',
|
||||
maxissueqty => 99,
|
||||
issuelength => 1,
|
||||
}
|
||||
);
|
||||
$rule->store();
|
||||
|
||||
subtest "InProcessingToShelvingCart tests" => sub {
|
||||
|
||||
|
|
Loading…
Reference in a new issue