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>
This commit is contained in:
parent
c0b74874b9
commit
ba7b962235
|
|
@ -696,6 +696,9 @@ sub _gen_default_values {
|
|||
sort1_authcat => undef,
|
||||
sort2_authcat => undef,
|
||||
},
|
||||
Aqorder => {
|
||||
quantity => 1,
|
||||
},
|
||||
AuthHeader => {
|
||||
marcxml => '',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue