@@ -, +, @@ --- t/db_dependent/Koha/Account.t | 3 +++ t/db_dependent/api/v1/patrons_accounts.t | 3 +++ 2 files changed, 6 insertions(+) --- a/t/db_dependent/Koha/Account.t +++ a/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; --- a/t/db_dependent/api/v1/patrons_accounts.t +++ a/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 } --