Bugzilla – Attachment 95815 Details for
Bug 23927
Duplicate a "Complete" order link the "New" one to the invoice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23927: Add tests
Bug-23927-Add-tests.patch (text/plain), 1.24 KB, created by
Séverine Queune
on 2019-11-26 10:20:51 UTC
(
hide
)
Description:
Bug 23927: Add tests
Filename:
MIME Type:
Creator:
Séverine Queune
Created:
2019-11-26 10:20:51 UTC
Size:
1.24 KB
patch
obsolete
>From 0d7d8495a22e0411f1617aadc5c306506ec01e92 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 25 Nov 2019 11:53:00 +0100 >Subject: [PATCH] Bug 23927: Add tests >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >--- > t/db_dependent/Koha/Acquisition/Order.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Acquisition/Order.t b/t/db_dependent/Koha/Acquisition/Order.t >index a13f9c5..3b7b68a 100644 >--- a/t/db_dependent/Koha/Acquisition/Order.t >+++ b/t/db_dependent/Koha/Acquisition/Order.t >@@ -174,7 +174,7 @@ subtest 'subscription' => sub { > }; > > subtest 'duplicate_to | add_item' => sub { >- plan tests => 2; >+ plan tests => 3; > > $schema->storage->txn_begin; > >@@ -241,5 +241,12 @@ subtest 'duplicate_to | add_item' => sub { > ); > }; > >+ subtest 'Regression tests' => sub { >+ plan tests => 1; >+ >+ my $duplicated_order = $order_no_sub->duplicate_to($basket_to); >+ is($duplicated_order->invoiceid, undef, "invoiceid should be set to null for a new duplicated order"); >+ }; >+ > $schema->storage->txn_rollback; > }; >-- >2.1.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 23927
:
95777
|
95778
|
95815
|
95816
|
95844
|
95845