woocommerce/tests/legacy/framework
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
..
helpers Update unit tests to reflect new base address 2021-04-12 14:13:27 -07:00
traits Add test for null meta value as well 2020-08-13 14:17:28 +05:30
vendor Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-api-unit-test-case.php Convert optional-before-required arguments to required. 2020-10-02 09:45:09 +02:00
class-wc-dummy-data-store.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-mock-payment-gateway.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-mock-session-handler.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-mock-wc-data.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-mock-wc-object-query.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-payment-token-stub.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-rest-unit-test-case.php Add a do_rest_request method to WC_REST_Unit_Test_Case. 2021-03-25 14:56:34 +01:00
class-wc-unit-test-case.php Modify wc_get_low_stock_amount so that it always returns an integer. 2021-04-20 10:17:50 +02:00
class-wc-unit-test-factory.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00