From 475887dfd72fba50bd5bb6542b051365141cb800 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 25 Oct 2022 14:56:23 -0300 Subject: [PATCH] Bug 23012: Fix t/db_dependent/Koha/Item.t With the follow-up changes, the return value is no longer a scalar, but a hashref, but the tests weren't updated accordingly. This patch fixes this situation. To test: 1. Run: $ kshell k$ prove t/db_dependent/Koha/Item.t => FAIL: Tests fail 2. Apply this patch 3. Repeat 1 => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Item.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 0f9326e2722..c77c86206d2 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -1432,8 +1432,8 @@ subtest 'store() tests' => sub { } ); - my $lostreturn_policy = 'charge'; - my $processingreturn_policy = 'refund'; + my $lostreturn_policy = { lostreturn => 'charge' }; + my $processingreturn_policy = { processingreturn => 'refund' }; my $mocked_circ_rules = Test::MockModule->new('Koha::CirculationRules'); $mocked_circ_rules->mock( 'get_lostreturn_policy', sub { return $lostreturn_policy; } ); -- 2.34.1