From 456a46d71fe14863845376f89f87ddbea1b41f23 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 19 Mar 2021 12:06:31 +0000 Subject: [PATCH] Bug 27636: Update failing test It would appear that ->pay didn't fully respect AccountAutoReconcile! --- t/db_dependent/Koha/Account.t | 3 +++ t/db_dependent/api/v1/patrons_accounts.t | 3 +++ 2 files changed, 6 insertions(+) diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t index eeea99cc42..f159aaaa94 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -856,6 +856,9 @@ subtest 'pay() handles lost items when paying by amount ( not specifying the los plan tests => 4; $schema->storage->txn_begin; + + # Enable AccountAutoReconcile + t::lib::Mocks::mock_preference( 'AccountAutoReconcile', 1 ); my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); my $library = $builder->build_object( { class => 'Koha::Libraries' } ); diff --git a/t/db_dependent/api/v1/patrons_accounts.t b/t/db_dependent/api/v1/patrons_accounts.t index 64a34668bb..fd7ab48afb 100755 --- a/t/db_dependent/api/v1/patrons_accounts.t +++ b/t/db_dependent/api/v1/patrons_accounts.t @@ -39,6 +39,9 @@ subtest 'get_balance() tests' => sub { $schema->storage->txn_begin; + # Enable AccountAutoReconcile + t::lib::Mocks::mock_preference( 'AccountAutoReconcile', 1 ); + my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { flags => 1 } -- 2.20.1