Bugzilla – Attachment 26281 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]
[PASSED QA] Bug 11551: Add unit tests for GetHistory
PASSED-QA-Bug-11551-Add-unit-tests-for-GetHistory.patch (text/plain), 1.66 KB, created by
Katrin Fischer
on 2014-03-13 13:59:13 UTC
(
hide
)
Description:
[PASSED QA] Bug 11551: Add unit tests for GetHistory
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-03-13 13:59:13 UTC
Size:
1.66 KB
patch
obsolete
>From 52f0f17424c1b855483bc72140b7129199be41dc 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] [PASSED QA] Bug 11551: Add unit tests for GetHistory > >prove t/db_dependent/Acquisition.t should return green. > >Signed-off-by: remy juliette <juliette.levast@iepg.fr> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > 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.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 11551
:
24278
|
24279
|
24280
|
26141
|
26142
|
26249
|
26250
| 26281 |
26282