From 709138a9d65a46115747ddc78e419d441b4154c7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 13 Nov 2018 11:24:14 -0300 Subject: [PATCH] Bug 21798: Fix another test We should correctly generate the data we need, here we expect 2 records with title starting with "Silence in the". --- t/db_dependent/Items.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index 9c914b0258..435b7516ef 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -357,7 +357,8 @@ subtest 'SearchItems test' => sub { t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); my $cpl_items_before = SearchItemsByField( 'homebranch', $library1->{branchcode}); - my $biblio = $builder->gimme_a_biblio(); + my $biblio = $builder->gimme_a_biblio({ title => 'Silence in the library' }); + $builder->gimme_a_biblio({ title => 'Silence in the shadow' }); my (undef, $initial_items_count) = SearchItems(undef, {rows => 1}); -- 2.11.0