Bugzilla – Attachment 87635 Details for
Bug 22511
Koha::Account::Line->void loses the original type of the credit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22511: (follow-up) Fix test plans
Bug-22511-follow-up-Fix-test-plans.patch (text/plain), 1.80 KB, created by
Martin Renvoize (ashimema)
on 2019-04-09 16:27:12 UTC
(
hide
)
Description:
Bug 22511: (follow-up) Fix test plans
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-09 16:27:12 UTC
Size:
1.80 KB
patch
obsolete
>From 2869be9c94386e74a2192da9c2947feafee3c792 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 27 Mar 2019 11:52:07 +0000 >Subject: [PATCH] Bug 22511: (follow-up) Fix test plans > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/Accounts.t | 2 +- > t/db_dependent/Koha/Account/Lines.t | 10 +++++++--- > 2 files changed, 8 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t >index e1ba90d124..17b91cca9e 100644 >--- a/t/db_dependent/Accounts.t >+++ b/t/db_dependent/Accounts.t >@@ -18,7 +18,7 @@ > > use Modern::Perl; > >-use Test::More tests => 34; >+use Test::More tests => 33; > use Test::MockModule; > use Test::Warn; > >diff --git a/t/db_dependent/Koha/Account/Lines.t b/t/db_dependent/Koha/Account/Lines.t >index f0087a9935..3856f6ef14 100755 >--- a/t/db_dependent/Koha/Account/Lines.t >+++ b/t/db_dependent/Koha/Account/Lines.t >@@ -19,7 +19,7 @@ > > use Modern::Perl; > >-use Test::More tests => 7; >+use Test::More tests => 8; > use Test::Exception; > > use C4::Circulation qw/AddIssue AddReturn/; >@@ -491,7 +491,9 @@ subtest 'checkout() tests' => sub { > > subtest "void() tests" => sub { > >- plan tests => 15; >+ plan tests => 16; >+ >+ $schema->storage->txn_begin; > > # Create a borrower > my $categorycode = $builder->build({ source => 'Category' })->{ categorycode }; >@@ -554,7 +556,9 @@ subtest "void() tests" => sub { > $line1->_result->discard_changes(); > my $line1_post = $line1->unblessed(); > is( $ret, undef, 'Attempted void on non-credit returns undef' ); >- is_deeply( $line1_pre, $line1_post, 'Non-credit account line cannot be voided' ) >+ is_deeply( $line1_pre, $line1_post, 'Non-credit account line cannot be voided' ); >+ >+ $schema->storage->txn_rollback; > }; > > 1; >-- >2.20.1
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 22511
:
86674
|
86675
|
86903
|
86904
|
86905
|
86915
|
86916
|
86917
|
87088
|
87089
|
87090
|
87091
|
87221
|
87222
|
87223
|
87224
|
87632
|
87633
|
87634
|
87635
|
87650
|
87651
|
87652
|
87653
|
87654
|
87704
|
87706
|
87796
|
87797
|
87798
|
87799
|
87800
|
87869
|
87870
|
87871
|
87872
|
87873
|
88707
|
88708
|
88709
|
88710
|
88711
|
88712
|
88713
|
88714
|
88715
|
88748