From a954b1d4d256039ac2a16e2e1d9acf2d148bf664 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 --- 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 3720d1aef5..8703225053 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -1069,8 +1069,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