X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2Fdb_dependent%2FCirculation%2FReturns.t;h=88182cdcccda44ec22391b704828f16b5b3b40f6;hb=7d71d9507202ff667776bf9cb6de0bf2603ad0dd;hp=bfedd31f01203f10d77f0e0abfde5628d628f9a5;hpb=31c29fd31f557306233e6a2936148a5bb10b89a1;p=koha.git diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index bfedd31f01..88182cdccc 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -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 ) }