From 8ac736e75c7fe044f5bd7a4a29657f72bdc9bb88 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! Signed-off-by: David Nind Signed-off-by: Kyle M Hall --- 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 75beed021e..f685b1e704 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -857,6 +857,9 @@ subtest 'pay() handles lost items when paying by amount ( not specifying the los $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' } ); my $account = $patron->account; 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.24.3 (Apple Git-128)