From 0e0de2e317d50970fb3fbbab0906745006c8ed36 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 8 Oct 2020 09:02:50 +0100 Subject: [PATCH] Bug 24446: Update transferbook Unit Test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We updated C4::Circulation::transferbook to return the to_branch branchcode as the data entity for 'WasTransfered'. This patch updates the corresponding unit test. To test: 1/ Run t/db_dependent/Circulation/transferbook.t 2/ Signoff if it passes Signed-off-by: Kathleen Milne Signed-off-by: Joonas Kylmälä --- t/db_dependent/Circulation/transferbook.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation/transferbook.t b/t/db_dependent/Circulation/transferbook.t index 61318d5c27..54d4b65819 100755 --- a/t/db_dependent/Circulation/transferbook.t +++ b/t/db_dependent/Circulation/transferbook.t @@ -83,7 +83,7 @@ subtest 'field population tests' => sub { is( $dotransfer, 1, 'Transfer succeeded' ); is_deeply( $messages, - { 'WasTransfered' => 1 }, + { 'WasTransfered' => $library2->branchcode }, "WasTransfered was set correctly" ); -- 2.20.1