Bug 12768: Fix tests - itemtypes.rentalcharge is now decimal(28,6)
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 23 Oct 2017 15:05:04 +0000 (12:05 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 23 Oct 2017 15:06:20 +0000 (12:06 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/ItemTypes.t

index ac239b3..eb08c65 100755 (executable)
@@ -102,7 +102,7 @@ my $type = Koha::ItemTypes->find('type1');
 ok( defined($type), 'first result' );
 is( $type->itemtype,       'type1',          'itemtype/code' );
 is( $type->description,    'description',    'description' );
-is( $type->rentalcharge,   '0.0000',             'rentalcharge' );
+is( $type->rentalcharge,   '0.000000',       'rentalcharge' );
 is( $type->imageurl,       'imageurl',       'imageurl' );
 is( $type->summary,        'summary',        'summary' );
 is( $type->checkinmsg,     'checkinmsg',     'checkinmsg' );
@@ -112,7 +112,7 @@ $type = Koha::ItemTypes->find('type2');
 ok( defined($type), 'second result' );
 is( $type->itemtype,       'type2',          'itemtype/code' );
 is( $type->description,    'description',    'description' );
-is( $type->rentalcharge,   '0.0000',             'rentalcharge' );
+is( $type->rentalcharge,   '0.000000',       'rentalcharge' );
 is( $type->imageurl,       'imageurl',       'imageurl' );
 is( $type->summary,        'summary',        'summary' );
 is( $type->checkinmsg,     'checkinmsg',     'checkinmsg' );