Bugzilla – Attachment 119991 Details for
Bug 27908
Add support for circulation status 1 ( other ) for damaged items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27908: Add unit test
Bug-27908-Add-unit-test.patch (text/plain), 1.42 KB, created by
Kyle M Hall (khall)
on 2021-04-22 10:30:10 UTC
(
hide
)
Description:
Bug 27908: Add unit test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-04-22 10:30:10 UTC
Size:
1.42 KB
patch
obsolete
>From 1a3c9400d6e5391b0c8037d0b5f0453fe352a3d5 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 10 Mar 2021 10:45:15 -0500 >Subject: [PATCH] Bug 27908: Add unit test > >Signed-off-by: Christopher Kellermeyer - Altadena Library District <ckellermeyer@altadenalibrary.org> >--- > t/db_dependent/SIP/Transaction.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t >index b4faa3c401..6fa5810662 100755 >--- a/t/db_dependent/SIP/Transaction.t >+++ b/t/db_dependent/SIP/Transaction.t >@@ -525,7 +525,7 @@ subtest checkin_withdrawn => sub { > }; > > subtest item_circulation_status => sub { >- plan tests => 6; >+ plan tests => 7; > > my $library = $builder->build_object( { class => 'Koha::Libraries' } ); > my $library2 = $builder->build_object( { class => 'Koha::Libraries' } ); >@@ -596,5 +596,12 @@ subtest item_circulation_status => sub { > $status = $sip_item->sip_circulation_status; > is( $status, '02', "Item circulation status is on order" ); > $item->notforloan($nfl)->store(); >+ >+ my $damaged = $item->damaged; >+ $item->damaged(1)->store(); >+ $sip_item = C4::SIP::ILS::Item->new( $item->barcode ); >+ $status = $sip_item->sip_circulation_status; >+ is( $status, '01', "Item circulation status is damaged" ); >+ $item->damaged(0)->store(); > }; > $schema->storage->txn_rollback; >-- >2.24.3 (Apple Git-128)
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 27908
:
118031
|
118074
|
118075
|
119991
|
119992
|
122733
|
122734