Bugzilla – Attachment 24546 Details for
Bug 11549
After transferring an order, receive and cancel the receipt will delete the order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11549: Add regression test
PASSED-QA-Bug-11549-Add-regression-test.patch (text/plain), 2.07 KB, created by
Katrin Fischer
on 2014-01-18 20:09:13 UTC
(
hide
)
Description:
[PASSED QA] Bug 11549: Add regression test
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-01-18 20:09:13 UTC
Size:
2.07 KB
patch
obsolete
>From b129f6c5703d4b4e26acc050aad2e41981d1d9ee Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 14 Jan 2014 12:04:24 +0100 >Subject: [PATCH] [PASSED QA] Bug 11549: Add regression test > >test plan: >prove t/db_dependent/Acquisition/TransferOrder.t should fail before the >patch and success after applying it. > >Signed-off-by: Sonia BOUIS <sonia.bouis@univ-lyon3.fr> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Testing notes on last patch. >--- > t/db_dependent/Acquisition/TransferOrder.t | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Acquisition/TransferOrder.t b/t/db_dependent/Acquisition/TransferOrder.t >index 7e39b77..a608627 100644 >--- a/t/db_dependent/Acquisition/TransferOrder.t >+++ b/t/db_dependent/Acquisition/TransferOrder.t >@@ -2,13 +2,14 @@ > > use Modern::Perl; > >-use Test::More tests => 6; >+use Test::More tests => 8; > use C4::Context; > use C4::Acquisition; > use C4::Biblio; > use C4::Items; > use C4::Bookseller; > use C4::Budgets; >+use Koha::DateUtils; > use MARC::Record; > > my $dbh = C4::Context->dbh; >@@ -56,7 +57,7 @@ my $itemnumber = AddItem({}, $biblionumber); > my ( undef, $ordernumber ) = C4::Acquisition::NewOrder( > { > basketno => $basketno1, >- quantity => 24, >+ quantity => 2, > biblionumber => $biblionumber, > budget_id => $budget->{budget_id}, > } >@@ -77,4 +78,10 @@ is(scalar GetOrders($basketno2), 1, "1 order in basket2"); > ($order) = GetOrders($basketno2); > is(scalar GetItemnumbersFromOrder($order->{ordernumber}), 1, "1 item in basket2's order"); > >+ModReceiveOrder( $biblionumber, $newordernumber, 2, undef, undef, undef, undef, undef, undef, dt_from_string ); >+CancelReceipt( $newordernumber ); >+$order = GetOrder( $newordernumber ); >+is ( $order->{ordernumber}, $newordernumber, 'Regression test Bug 11549: After a transfer, receive and cancel the receive should be possible.' ); >+is ( $order->{basketno}, $basketno2, 'Regression test Bug 11549: The order still exist in the basket where the transfer has been done.'); >+ > $dbh->rollback; >-- >1.8.3.2
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 11549
:
24274
|
24275
|
24276
|
24402
|
24403
|
24404
|
24487
|
24503
| 24546 |
24547
|
24548
|
24549