From b231ed167eaa8c337c110a5a841db33041e25861 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 May 2019 10:44:53 -0500 Subject: [PATCH] Bug 22879: Add a test-like --- t/db_dependent/Koha/BiblioUtils/Iterator.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/Koha/BiblioUtils/Iterator.t b/t/db_dependent/Koha/BiblioUtils/Iterator.t index c2c5a39f28..05d3a25629 100644 --- a/t/db_dependent/Koha/BiblioUtils/Iterator.t +++ b/t/db_dependent/Koha/BiblioUtils/Iterator.t @@ -60,4 +60,9 @@ my @result_tags = map { $_->tag() } $record->field('...'); my @sorted_tags = sort @result_tags; is_deeply(\@sorted_tags,$expected_tags, "Got the same tags as expected"); +Koha::Biblio::Metadatas->find({ biblionumber => $biblio->biblionumber })->delete; +my $records = Koha::BiblioUtils->get_all_biblios_iterator(); +my $next = sub { $records->next }; +while ( my $r = $next->() ) {} + $schema->storage->txn_rollback(); -- 2.11.0