From eeccab58632488355aea4c988854d263412a703c Mon Sep 17 00:00:00 2001 From: Sam Lau Date: Tue, 6 Aug 2024 20:10:31 +0000 Subject: [PATCH] Bug 32485: Unit tests prove t/Koha/ItemType.t --- t/Koha/ItemType.t | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/t/Koha/ItemType.t b/t/Koha/ItemType.t index ea18951198..6461cf30d5 100755 --- a/t/Koha/ItemType.t +++ b/t/Koha/ItemType.t @@ -19,20 +19,22 @@ use Modern::Perl; -use Test::More tests => 8; +use Test::More tests => 10; BEGIN { use_ok('Koha::ItemType'); } my $data = { - itemtype => 'CODE', - description => 'description', - rentalcharge => 'rentalcharge', - imageurl => 'imageurl', - summary => 'summary', - checkinmsg => 'checkinmsg', - checkinmsgtype => 'checkinmsgtype', + itemtype => 'CODE', + description => 'description', + rentalcharge => 'rentalcharge', + imageurl => 'imageurl', + summary => 'summary', + checkinmsg => 'checkinmsg', + checkinmsgtype => 'checkinmsgtype', + checkoutmsg => 'checkoutmsg', + checkoutmsgtype => 'checkoutmsgtype', }; my $type = Koha::ItemType->new($data); @@ -44,3 +46,5 @@ is( $type->imageurl, 'imageurl', 'imageurl' ); is( $type->summary, 'summary', 'summary' ); is( $type->checkinmsg, 'checkinmsg', 'checkinmsg' ); is( $type->checkinmsgtype, 'checkinmsgtype', 'checkinmsgtype' ); +is( $type->checkoutmsg, 'checkoutmsg', 'checkoutmsg' ); +is( $type->checkoutmsgtype, 'checkoutmsgtype', 'checkoutmsgtype' ); -- 2.39.2