From 754e3e4da45fdd9b006413b7e13e1013e8de362b Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Mon, 24 Sep 2018 08:03:25 +0000 Subject: [PATCH] Bug 20664: (follow-up) Fix test for GetMarcItemFields Without this patch I got this error running the test: YAML Error: Stream does not end with newline character Test plan: prove t/db_dependent/Items.t Signed-off-by: Josef Moravec Signed-off-by: Martin Renvoize --- t/db_dependent/Items.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index c11f8f999d..a838d00fba 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -1108,8 +1108,7 @@ subtest 'tests for GetMarcItemFields' => sub { $item2_marc->field($itemtag)->delete_subfield(code => $item_num_subfield); #because it won't match #Testing with hidden items - my $opachiddenitems = " - withdrawn: [1]"; + my $opachiddenitems = "withdrawn: [1]\n"; my $hidingrules = YAML::Load($opachiddenitems); my $marc_items = C4::Items::GetMarcItemFields( $biblio->{biblionumber}, [], $hidingrules ); @$marc_items[0]->delete_subfield(code => $item_num_subfield); -- 2.17.1