From 23302ebdd7a1b92b2163880bd17ae55e07b77e99 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 24 Mar 2017 11:18:21 +0000 Subject: [PATCH 4/4] Bug 18267 Add test for new tax_rate method Test return for new method added to Edifact::Line --- t/EdiInvoice.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/EdiInvoice.t b/t/EdiInvoice.t index 14e7596..6ed0dbb 100755 --- a/t/EdiInvoice.t +++ b/t/EdiInvoice.t @@ -3,7 +3,7 @@ use strict; use warnings; use FindBin qw( $Bin ); -use Test::More tests => 19; +use Test::More tests => 20; BEGIN { use_ok('Koha::Edifact') } @@ -73,3 +73,7 @@ is( $lineprice, 4.55, 'correct net line price returned' ); my $tax = $lines->[7]->tax; is( $tax, 0, 'correct tax amount returned' ); + +my $tax_rate = $lines->[7]->tax_rate; + +is( $tax_rate->{rate}, 0.0, 'correct tax rate returned' ); -- 2.9.3