Mike Jolley
4cdb874285
Update rest tests
2021-06-15 13:40:25 +01:00
Mike Jolley
5e26428d44
Add order test
2021-06-03 14:05:19 +01:00
roykho
ded5c9c7c4
Update unit tests to reflect new base address
2021-04-12 14:13:27 -07:00
Nestor Soriano
52eed70f04
Add a 'NumberUtil' class with a 'round' method.
...
There's a number of places in the WooCommerce codebase where the
built-in function 'round' is executed passing a non-numeric value
(not a number and not a string that can be parsed as a number),
for example round(''). In PHP 7 this yields a value of 0, but in
PHP 8 this throws an error.
This commit adds a 'NumberUtil' class with a static 'round' method,
this method checks if the passed value is numeric and if so it just
executes the built-in function, otherwise it returns 0. And all the
calls to 'round' in the codebase are replaced with 'NumberUtil::round'.
2020-10-01 11:08:51 +02:00
Claudio Sanches
02cf0dfaed
Merge pull request #27239 from woocommerce/fix/package-tag
...
Fix usage of "package" tag in file headers
2020-08-07 13:37:24 -03:00
Claudio Sanches
17f9883f00
Changed | to \
2020-08-07 13:36:41 -03:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Jonathan Sadowski
163e10253a
Release coupon holds when status it updated to cancelled regardless of recorded coupons
2020-07-30 10:35:23 -05:00
Claudio Sanches
d3d8e74b58
Fixed unit tests for #26462
2020-07-01 18:13:29 -03:00
Claudio Sanches
54f91a5a59
Merge pull request #26566 from woocommerce/update/26510-generate-order-key
...
Allow custom values in wc_generate_order_key()
2020-07-01 12:41:24 -03:00
Peter Fabian
c35c4f1f08
Merge pull request #26395 from woocommerce/revert-26226-revert-25708-update/reserve-stock-for-checkout
...
Introduce a `reserved stock` class and database table to prevent race conditions during checkout
2020-06-16 11:38:10 +02:00
Vedanshu Jain
b45373fe0c
Revert "Revert "Introduce a `reserved stock` class and database table to prevent race conditions during checkout""
2020-06-05 15:18:01 +05:30
vedanshujain
57d336433a
Fix regression caused by merging #25092 conflicting with #24828
2020-05-22 22:08:42 +05:30
Claudio Sanches
5d034b83a9
Allow custom values in wc_generate_order_key()
2020-05-20 17:41:22 -03:00
Christopher Allford
b5bd8225e8
Moved PHPUnit suite into tests/legacy
2020-04-24 13:53:40 -07:00