Koha-clms/t/lib
Jonathan Druart 9bebbf1b49
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>
(cherry picked from commit 621b75ddf0)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit ba7b962235)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2025-10-16 07:55:14 +02:00
..
IdP Bug 31378: Rename Auth Provider to Identity Provider and add Client.t tests 2022-11-08 14:39:51 -03:00
Koha/BackgroundJob Bug 31351: (QA follow-up) Adjust tests accordingly 2022-09-07 13:59:07 -07:00
Mocks Bug 38818: Add diag option to t::lib::Mocks::Logger 2025-08-01 15:20:43 +02:00
QA Bug 38872: Parse all 'a' element, not only the first one 2025-04-22 23:02:09 +02:00
bad_plugins/Koha/Plugin Bug 29273: Remove warnings from plugin tests 2021-11-15 12:38:39 +01:00
plugins/Koha/Plugin Bug 36433: UT 2025-08-04 12:26:59 +02:00
Bootstrap.pm Bug 19821: Require database_test != database 2021-10-25 11:27:40 +02:00
Dates.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Mocks.pm Bug 36367: Remove _new_userenv 2024-06-14 11:17:17 +01:00
Selenium.pm Bug 36640: Fix selenium tests 2024-11-14 14:19:27 +01:00
TestBuilder.pm Bug 40765: Prevent acquisition tests to fail if order.quantity = 0 2025-10-16 07:55:14 +02:00