Bugzilla – Attachment 24402 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]
Bug 11549: Add regression test
Bug-11549-Add-regression-test.patch (text/plain), 1.98 KB, created by
Biblibre Sandboxes
on 2014-01-15 14:57:38 UTC
(
hide
)
Description:
Bug 11549: Add regression test
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2014-01-15 14:57:38 UTC
Size:
1.98 KB
patch
obsolete
>From 9ac8b4a03b54481b5f61a1dcabd2be5f574a89f4 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] 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> >--- > t/db_dependent/Acquisition/TransferOrder.t | 11 +++++++++-- > 1 files 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.7.2.5
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