From 2753d2e19dc2e02abca57756dc00352fd2cc8eba 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 b1b4a6f..f61f8ee 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -976,8 +976,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.1.4