Bugzilla – Attachment 186266 Details for
Bug 40765
Acquisition tests will fail if order.quantity is set to 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40765: Prevent acquisition tests to fail if order.quantity = 0
Bug-40765-Prevent-acquisition-tests-to-fail-if-ord.patch (text/plain), 1.41 KB, created by
Lucas Gass (lukeg)
on 2025-09-08 17:34:15 UTC
(
hide
)
Description:
Bug 40765: Prevent acquisition tests to fail if order.quantity = 0
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-09-08 17:34:15 UTC
Size:
1.41 KB
patch
obsolete
>From 8d5637f26de2280a611031093912a6443eeafde0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 8 Sep 2025 10:38:29 +0200 >Subject: [PATCH] Bug 40765: Prevent acquisition tests to fail if > order.quantity = 0 > >When using TestBuilder to build an order the tests will fail when the object will be saved: > >00:09:41 koha-1 | # Looks like you planned 58 tests but ran 26. >00:09:41 koha-1 | >00:09:41 koha-1 | # Failed test 'cancel() tests' >00:09:41 koha-1 | # at t/db_dependent/Koha/Acquisition/Order.t line 1042. >00:09:41 koha-1 | Cannot insert order: Mandatory parameter quantity is missing at t/db_dependent/Koha/Acquisition/Order.t line 868. >00:09:41 koha-1 | # Looks like your test exited with 255 just after 14. >00:09:41 koha-1 | [22:03:54] t/db_dependent/Koha/Acquisition/Order.t > >This happened on Koha_Main/3350 > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > t/lib/TestBuilder.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index 71a86984f2d..e5bdfde6b49 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -696,6 +696,9 @@ sub _gen_default_values { > sort1_authcat => undef, > sort2_authcat => undef, > }, >+ Aqorder => { >+ quantity => 1, >+ }, > AuthHeader => { > marcxml => '', > }, >-- >2.39.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 40765
:
186255
| 186266 |
186282