Bugzilla – Attachment 105790 Details for
Bug 25724
Transferred item checked in to shelving cart has cart location removed when transfer is filled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25724: Unit tests
Bug-25724-Unit-tests.patch (text/plain), 1.61 KB, created by
Nick Clemens
on 2020-06-12 11:16:18 UTC
(
hide
)
Description:
Bug 25724: Unit tests
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2020-06-12 11:16:18 UTC
Size:
1.61 KB
patch
obsolete
>From 0e2579da2367ffda6785796fcafe844eab71ef55 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 12 Jun 2020 11:11:26 +0000 >Subject: [PATCH] Bug 25724: Unit tests > >--- > t/db_dependent/Circulation/issue.t | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Circulation/issue.t b/t/db_dependent/Circulation/issue.t >index 36c56bb427..2a75da7de4 100644 >--- a/t/db_dependent/Circulation/issue.t >+++ b/t/db_dependent/Circulation/issue.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 45; >+use Test::More tests => 46; > use DateTime::Duration; > > use t::lib::Mocks; >@@ -443,6 +443,16 @@ t::lib::Mocks::mock_preference( 'UpdateItemLocationOnCheckin', '_ALL_: CART' ); > AddReturn( 'barcode_4', $branchcode_1 ); > $item2 = Koha::Items->find( $itemnumber2 ); > ok( $item2->location eq 'CART', q{UpdateItemLocationOnCheckin updates location value from 'GEN' with setting "_ALL_: CART"} ); >+Koha::Item::Transfer->new({ >+ itemnumber => $itemnumber2, >+ frombranch => $branchcode_2, >+ tobranch => $branchcode_1, >+ datesent => '2020-01-01' >+})->store; >+AddReturn( 'barcode_4', $branchcode_1 ); >+$item2 = Koha::Items->find( $itemnumber2 ); >+ok( $item2->location eq 'CART', q{UpdateItemLocationOnCheckin updates location value from 'GEN' with setting "_ALL_: CART" when transfer filled} ); >+ > ok( $item2->permanent_location eq 'GEN', q{UpdateItemLocationOnCheckin does not update permanent_location value from 'GEN' with setting "_ALL_: CART"} ); > AddIssue( $borrower_1, 'barcode_4', $daysago10,0, $today, '' ); > $item2 = Koha::Items->find( $itemnumber2 ); >-- >2.11.0
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 25724
:
105790
|
105791
|
106416
|
106417
|
107372
|
107373