woocommerce/tests/legacy
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
..
data Add unit test and a sample Woo plugin file 2020-05-01 22:47:08 +05:30
framework Modify wc_get_low_stock_amount so that it always returns an integer. 2021-04-20 10:17:50 +02:00
includes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
unit-tests Update unit tests to reflect new base address 2021-04-12 14:13:27 -07:00
bootstrap.php Reintroduce the dependency injection related code. 2020-10-08 09:28:05 +02:00
classes-with-mockable-static-methods.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00
mockable-functions.php Add unit tests for the WC_Checkout class. 2021-02-08 15:49:38 +01:00