@@ -, +, @@ --- t/db_dependent/XSLT.t | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) --- a/t/db_dependent/XSLT.t +++ a/t/db_dependent/XSLT.t @@ -133,11 +133,17 @@ subtest 'buildKohaItemsNamespace status tests' => sub { like($xml,qr{${library_name}}, "Found resultbranch / holding branch" ); t::lib::Mocks::mock_preference('UseRecalls', 1); - my $recall = $builder->build_object({ class => 'Koha::Recalls', value => { - biblio_id => $item->biblionumber, - item_id => $item->itemnumber, - pickup_library_id => $item->holdingbranch, - }}); + my $recall = $builder->build_object( + { + class => 'Koha::Recalls', + value => { + biblio_id => $item->biblionumber, + item_id => $item->itemnumber, + pickup_library_id => $item->holdingbranch, + item_level => 1, + } + } + ); $recall->set_waiting; $xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); like($xml,qr{Recall waiting},"Waiting status takes precedence over In transit (recalls)"); --