Bugzilla – Attachment 53599 Details for
Bug 16934
Cannot add notes to canceled and deleted order line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16934: Add test for ModOrder
Bug-16934-Add-test-for-ModOrder.patch (text/plain), 1.31 KB, created by
Jonathan Druart
on 2016-07-21 17:24:24 UTC
(
hide
)
Description:
Bug 16934: Add test for ModOrder
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-07-21 17:24:24 UTC
Size:
1.31 KB
patch
obsolete
>From dc3ecc1473dd3cdb29113a15a14d6caf87ecc0be Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 21 Jul 2016 18:23:00 +0100 >Subject: [PATCH] Bug 16934: Add test for ModOrder > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Acquisition.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t >index 7c80387..6f1a0d2 100755 >--- a/t/db_dependent/Acquisition.t >+++ b/t/db_dependent/Acquisition.t >@@ -19,7 +19,7 @@ use Modern::Perl; > > use POSIX qw(strftime); > >-use Test::More tests => 91; >+use Test::More tests => 92; > use Koha::Database; > > BEGIN { >@@ -938,6 +938,13 @@ ok(($order4->{cancellationreason} eq "foobar"), "order has cancellation reason \ > ok((not defined GetBiblio($order4->{biblionumber})), "biblio does not exist anymore"); > # End of tests for DelOrder > >+subtest 'ModOrder' => sub { >+ plan tests => 1; >+ ModOrder( { ordernumber => $order1->{ordernumber}, unitprice => 42 } ); >+ my $order = GetOrder( $order1->{ordernumber} ); >+ is( int($order->{unitprice}), 42, 'ModOrder should work even if biblionumber if not passed'); >+}; >+ > # Budget reports > my $all_count = scalar GetBudgetsReport(); > ok($all_count >= 1, "GetBudgetReport OK"); >-- >2.8.1
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 16934
:
53472
|
53537
|
53598
| 53599