From f8c15f3940eb7a53a060510cd07628a4c8d46258 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 14 Jun 2019 18:17:54 +0000 Subject: [PATCH] Bug 23129: Unit test --- t/db_dependent/Circulation/transfers.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation/transfers.t b/t/db_dependent/Circulation/transfers.t index a377c932cb..28fce32581 100644 --- a/t/db_dependent/Circulation/transfers.t +++ b/t/db_dependent/Circulation/transfers.t @@ -27,7 +27,7 @@ use Koha::Item::Transfers; use t::lib::TestBuilder; -use Test::More tests => 24; +use Test::More tests => 25; use Test::Deep; BEGIN { @@ -96,6 +96,10 @@ ModItemTransfer( $branchcode_1, $branchcode_2 ); + +my $item_obj = Koha::Items->find({ itemnumber => $item_id1 }); +is( $item_obj->holdingbranch, $branchcode_1, "Item should be held at branch that initiates transfer"); + ModItemTransfer( $item_id2, $branchcode_1, -- 2.11.0