Bugzilla – Attachment 170116 Details for
Bug 32485
Add itemtype checkout message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32485: Unit tests
Bug-32485-Unit-tests.patch (text/plain), 1.62 KB, created by
Sam Lau
on 2024-08-06 20:12:45 UTC
(
hide
)
Description:
Bug 32485: Unit tests
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2024-08-06 20:12:45 UTC
Size:
1.62 KB
patch
obsolete
>From eeccab58632488355aea4c988854d263412a703c Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32485
:
170113
|
170114
|
170115
| 170116 |
170503