From 024e9ea90a7af688911155c5f3fc2382feda0b6d 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 3637272603..ad75cd309e 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.20.1