Bugzilla – Attachment 26249 Details for
Bug 11551
Allow to search on ordernumber in histsearch.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11551: Add unit tests for GetHistory
Bug-11551-Add-unit-tests-for-GetHistory.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2014-03-13 10:34:50 UTC
(
hide
)
Description:
Bug 11551: Add unit tests for GetHistory
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-03-13 10:34:50 UTC
Size:
1.54 KB
patch
obsolete
>From 2a6de346d24f14c50fa9b71c61bd4d1b82120058 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 14 Jan 2014 14:00:16 +0100 >Subject: [PATCH] Bug 11551: Add unit tests for GetHistory > >prove t/db_dependent/Acquisition.t should return green. >--- > t/db_dependent/Acquisition.t | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t >index f2ee820..38f79d6 100755 >--- a/t/db_dependent/Acquisition.t >+++ b/t/db_dependent/Acquisition.t >@@ -8,7 +8,7 @@ use POSIX qw(strftime); > > use C4::Bookseller qw( GetBookSellerFromId ); > >-use Test::More tests => 68; >+use Test::More tests => 72; > > BEGIN { > use_ok('C4::Acquisition'); >@@ -807,6 +807,14 @@ is( $neworder->{'quantityreceived'}, > 2, 'Splitting up order received items on new order' ); > is( $neworder->{'budget_id'}, $budgetid, 'Budget on new order is unchanged' ); > >+is( $neworder->{ordernumber}, $new_ordernumber, 'Split: test ordernumber' ); >+is( $neworder->{parent_ordernumber}, $ordernumbers[1], 'Split: test parent_ordernumber' ); >+ >+my ( $orders ) = GetHistory( ordernumber => $ordernumbers[1] ); >+is( scalar( @$orders ), 1, 'GetHistory with a given ordernumber returns 1 order' ); >+( $orders ) = GetHistory( ordernumber => $ordernumbers[1], search_children_too => 1 ); >+is( scalar( @$orders ), 2, 'GetHistory with a given ordernumber and search_children_too set returns 2 orders' ); >+ > my $budgetid2 = C4::Budgets::AddBudget( > { > budget_code => "budget_code_test_modrecv", >-- >1.7.10.4
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 11551
:
24278
|
24279
|
24280
|
26141
|
26142
|
26249
|
26250
|
26281
|
26282