Bugzilla – Attachment 122721 Details for
Bug 27906
Add support for circulation status 9 ( waiting to be re-shelved )
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27906: Add unit test
Bug-27906-Add-unit-test.patch (text/plain), 1.48 KB, created by
Martin Renvoize (ashimema)
on 2021-07-09 11:58:29 UTC
(
hide
)
Description:
Bug 27906: Add unit test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-07-09 11:58:29 UTC
Size:
1.48 KB
patch
obsolete
>From f1c7668b0b4d4bad8a1ee1a0a5660fcd596c441f Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 10 Mar 2021 10:22:54 -0500 >Subject: [PATCH] Bug 27906: Add unit test > >Signed-off-by: Christopher Kellermeyer - Altadena Library District <ckellermeyer@altadenalibrary.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/SIP/Transaction.t | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t >index 54d7dc700a..8bdb77b079 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 => 4; >+ plan tests => 5; > > my $library = $builder->build_object( { class => 'Koha::Libraries' } ); > my $library2 = $builder->build_object( { class => 'Koha::Libraries' } ); >@@ -581,5 +581,11 @@ subtest item_circulation_status => sub { > $sip_item = C4::SIP::ILS::Item->new( $item->barcode ); > $status = $sip_item->sip_circulation_status; > is( $status, '12', "Item circulation status is lost" ); >+ $item->itemlost(0)->store(); >+ >+ $item->location("CART")->store(); >+ $sip_item = C4::SIP::ILS::Item->new( $item->barcode ); >+ $status = $sip_item->sip_circulation_status; >+ is( $status, '09', "Item circulation status is waiting to be re-shelved" ); > }; > $schema->storage->txn_rollback; >-- >2.20.1
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 27906
:
118026
|
118027
|
118028
|
119987
|
119988
| 122721 |
122722