Bug 21798: Fix another test
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Nov 2018 14:24:14 +0000 (11:24 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 28 Jan 2019 18:53:27 +0000 (18:53 +0000)
We should correctly generate the data we need, here we expect 2 records
with title starting with "Silence in the".

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

t/db_dependent/Items.t

index 9c914b0..435b751 100755 (executable)
@@ -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});