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 <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
parent
394d32eb35
commit
31dd225311
1 changed files with 3 additions and 9 deletions
|
@ -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'
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue