Bugzilla – Attachment 119244 Details for
Bug 27636
Replace Koha::Account::pay with a simpler method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27636: Update failing test
Bug-27636-Update-failing-test.patch (text/plain), 1.59 KB, created by
David Nind
on 2021-04-06 19:38:37 UTC
(
hide
)
Description:
Bug 27636: Update failing test
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-04-06 19:38:37 UTC
Size:
1.59 KB
patch
obsolete
>From 75942a2d3ec4bd8cfe064755fa66c7ab0f68658f Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 <david@davidnind.com> >--- > 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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27636
:
116393
|
118471
|
118515
|
118516
|
118522
|
118523
|
119205
|
119206
|
119207
|
119242
|
119243
|
119244
|
120022
|
120023
|
120024
|
120089
|
120090
|
120091
|
120257
|
120258
|
120259
|
120262
|
120263
|
120270
|
120271
|
120272
|
120276
|
120294
|
120343
|
120344
|
120345