woocommerce/tests/php
Nestor Soriano 76a613a5bb
Modify wc_get_low_stock_amount so that it always returns an integer.
Previously, if the product didn't have an explicit low stock value
amount the value of the woocommerce_notify_low_stock_amount option,
which is a string, was returned verbatim.

Also, update related unit tests to create the option value as a string,
and to check that the value returned by woocommerce_notify_low_stock_amount
is always an integer.
2021-04-20 10:17:50 +02:00
..
includes Modify wc_get_low_stock_amount so that it always returns an integer. 2021-04-20 10:17:50 +02:00
src Make the refunds creation REST API behave more as documented 2021-02-11 09:51:13 +01:00