Bug 20912: (QA follow-up) Rebase error corrections
[koha.git] / t / db_dependent / Circulation / Returns.t
index bfedd31..88182cd 100644 (file)
@@ -41,7 +41,7 @@ use MARC::Field;
 my $branch;
 my $context = Test::MockModule->new('C4::Context');
 $context->mock( 'userenv', sub {
-    return { branch => $branch }
+    return { branch => $branch, number => 1234, firstname => "Adam", surname => "Smaith" }
 });
 
 my $schema = Koha::Database->schema;
@@ -54,7 +54,6 @@ my $rule = Koha::IssuingRule->new(
         categorycode => '*',
         itemtype     => '*',
         branchcode   => '*',
-        maxissueqty  => 99,
         issuelength  => 1,
     }
 );
@@ -176,6 +175,10 @@ subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub {
         "item-level itype recorded on statistics for return");
     warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) }
                  [qr/^item-level_itypes set but no itemtype set for item/,
+                 qr/^item-level_itypes set but no itemtype set for item/,
+                 qr/^item-level_itypes set but no itemtype set for item/,
+                 qr/^item-level_itypes set but no itemtype set for item/,
+                 qr/^item-level_itypes set but no itemtype set for item/,
                  qr/^item-level_itypes set but no itemtype set for item/],
                  'Item without itemtype set raises warning on AddIssue';
     warning_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) }