From 42330ef523b99c78c6457543072f12245b029fc9 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 27 Oct 2023 17:16:27 -0300 Subject: [PATCH] Bug 10762: Fix default values test This patch adds the new default values to the data structure the result is compared with. It also fixes the tests count (probably an untested rebase issue) Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Labels/t_Layout.t | 34 +++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/t/db_dependent/Labels/t_Layout.t b/t/db_dependent/Labels/t_Layout.t index 54be026ba70..9e269061a44 100755 --- a/t/db_dependent/Labels/t_Layout.t +++ b/t/db_dependent/Labels/t_Layout.t @@ -19,7 +19,7 @@ use Modern::Perl; -use Test::More tests => 38; +use Test::More tests => 40; use C4::Context; BEGIN { @@ -27,21 +27,23 @@ BEGIN { } my $default_layout = { - creator => 'Labels', - layout_xml => '', - units => 'POINT', - start_label => 1, - barcode_type => 'CODE39', - printing_type => 'BAR', - layout_name => 'TEST', - guidebox => 0, - oblique_title => 1, - font => 'TR', - font_size => 3, - callnum_split => 0, - text_justify => 'L', - format_string => 'title, author, isbn, issn, itemtype, barcode, itemcallnumber', - }; + barcode_type => 'CODE39', + callnum_split => 0, + creator => 'Labels', + font => 'TR', + font_size => 3, + format_string => 'title, author, isbn, issn, itemtype, barcode, itemcallnumber', + guidebox => 0, + layout_name => 'TEST', + layout_xml => '', + oblique_title => 1, + printing_type => 'BAR', + scale_height => 0.01, + scale_width => 0.8, + start_label => 1, + text_justify => 'L', + units => 'POINT', +}; my $layout; -- 2.42.0