Bugzilla – Attachment 97594 Details for
Bug 17667
Standing orders - cancelling a receipt increase the original quantity
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17667: Add tests
Bug-17667-Add-tests.patch (text/plain), 1.28 KB, created by
Katrin Fischer
on 2020-01-19 22:01:39 UTC
(
hide
)
Description:
Bug 17667: Add tests
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-01-19 22:01:39 UTC
Size:
1.28 KB
patch
obsolete
>From f8d73dbd49b34b29c947773421e48c82104c74ca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 18 Dec 2019 18:10:07 +0100 >Subject: [PATCH] Bug 17667: Add tests > >Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/db_dependent/Acquisition/StandingOrders.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Acquisition/StandingOrders.t b/t/db_dependent/Acquisition/StandingOrders.t >index 1fbe88fb01..d53d13d93d 100644 >--- a/t/db_dependent/Acquisition/StandingOrders.t >+++ b/t/db_dependent/Acquisition/StandingOrders.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > >-use Test::More tests => 13; >+use Test::More tests => 14; > use C4::Context; > use C4::Acquisition; > use C4::Biblio; >@@ -131,4 +131,9 @@ $search_orders = SearchOrders( { > is( scalar @$search_orders, 1, 'only one pending order after receive' ); > is( $search_orders->[0]->{ordernumber}, $ordernumber, 'original order is only pending order' ); > >+CancelReceipt($new_ordernumber); >+$order = Koha::Acquisition::Orders->find( $ordernumber ); >+is( $order->quantity, 1, 'CancelReceipt should not have increased the quantity if order is standing'); >+ >+ > $schema->storage->txn_rollback(); >-- >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 17667
:
96427
|
96433
|
96663
|
96664
|
97317
|
97318
|
97593
| 97594