From 31dd225311e9291a920fddbaf8614b30e0cd3790 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Jan 2016 15:10:42 +0000 Subject: [PATCH] Bug 15601: Fix TestBuilder tests Bug 13624 modified the DB structure for overduerules. The TestBuilder tests (t/db_dependent/TestBuilder.t) based some of its checks on this structure. Test plan: prove t/db_dependent/TestBuilder.t Should return green. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- t/db_dependent/TestBuilder.t | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t index 638d2ef4eb..a3cb813be6 100644 --- a/t/db_dependent/TestBuilder.t +++ b/t/db_dependent/TestBuilder.t @@ -19,7 +19,7 @@ use Modern::Perl; -use Test::More tests => 42; +use Test::More tests => 41; use Koha::Database; @@ -49,8 +49,7 @@ my $my_overduerules_transport_type = { message_transport_type => { message_transport_type => 'my msg_t_t', }, - letternumber => 1, - branchcode => { + overduerules_id => { branchcode => 'codeB', categorycode => 'codeC', }, @@ -66,11 +65,6 @@ is( $my_overduerules_transport_type->{message_transport_type}->{message_transport_type}, 'build stores the message_transport_type correctly' ); -is( - $overduerules_transport_type->{letternumber}, - $my_overduerules_transport_type->{letternumber}, - 'build stores the letternumber correctly' -); is( $overduerules_transport_type->{branchcode}, $my_overduerules_transport_type->{branchcode}->{branchcode}, @@ -102,7 +96,7 @@ is_deeply( 'build links the branchcode and the categorycode correctly' ); isnt( - $overduerules_transport_type->{_fk}->{branchcode}->{letter2}, + $overduerules_transport_type->{_fk}->{overduerules_id}->{letter2}, undef, 'build generates values if they are not given' ); -- 2.39.5