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 commit621b75ddf0) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitba7b962235) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
ae9c5b786d
commit
9bebbf1b49
|
|
@ -676,6 +676,9 @@ sub _gen_default_values {
|
|||
sort1_authcat => undef,
|
||||
sort2_authcat => undef,
|
||||
},
|
||||
Aqorder => {
|
||||
quantity => 1,
|
||||
},
|
||||
AuthHeader => {
|
||||
marcxml => '',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue