Bug 24446: Update transferbook Unit Test

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 <kathleen.milne@cne-siar.gov.uk>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2020-10-08 09:02:50 +01:00 committed by Jonathan Druart
parent 7e919d12d8
commit d25c667d06
1 changed files with 1 additions and 1 deletions

View File

@ -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"
);