vedanshujain
facfb16131
Changed class name to match file name
2020-04-03 15:55:14 +01:00
Claudio Sanches
2ebd86f2dc
Revert "Revert "Add support for '_held_for_checkout` records to prevent race conditions.""
2020-04-03 15:55:13 +01:00
Steve Grunwell
17c56d6d12
Merge branch 'master' into fix/travis-against-minimium-requirements
2020-04-01 14:30:42 -04:00
Christopher Allford
23e555823b
Merge pull request #25943 from woocommerce/fix/25810
...
Fixed remainder application for percent coupons
2020-03-30 14:13:03 -07:00
Peter Fabian
0e0b1d646d
Merge pull request #25882 from woocommerce/fix/25845
...
Set usage count before usages query
2020-03-18 15:44:49 +01:00
Christopher Allford
917e5ff77d
Merge pull request #25923 from woocommerce/fix/test-install-db-socket
...
Correct usage of database sockets in test install script
2020-03-17 09:08:18 -07:00
Christopher Allford
ed55034867
Added a check to prevent coupon cent remainders from decreasing the item cost below zero
2020-03-16 21:32:25 -07:00
Christopher Allford
a576060403
Replaced the strict path used in the MaxMind database download test
...
It was set to /tmp directly instead of using the sys_get_temp_dir() method, leading to failures on systems with a different temp folder location,
2020-03-13 20:44:35 -07:00
Christopher Allford
8c0f4a1204
Made the is_package_shippable check more permissive
...
Initially it was made more precise to avoid calculating estimates for incomplete addresses. Due to some bad working in template files though, as well as historical precedent, we need to change it back.
2020-03-13 09:15:31 -07:00
Steve Grunwell
d085044970
Remove an unnecessary onNotSuccessfulTest() override, as the tearDown() fixture will be called regardless of the successfulness of the test method
2020-03-12 16:00:01 +00:00
Steve Grunwell
0a5161ea3d
*CODING STANDARDS ONLY* Add method visibility, clean up inline documentation.
2020-03-12 15:57:32 +00:00
Steve Grunwell
2383670020
Simplify the test for test_get_tables_enables_filter() now that we can leverage PHP >= 5.3
2020-03-12 15:54:25 +00:00
Steve Grunwell
7f74eace0b
Rewrite WC_Tests_Install::test_get_tables()
...
Instead of comparing all tables that exist with all tables that are registered with `WC_Install::get_tables()` (which was only introduced a few versions ago in #19436 ), rewrite the test to verify that all of the tables *registered* actually exist within the database.
This will prevent tests from failing when, for example, they're run against databases that may or may not have additional plugins installed/activated. This also prevents tests from failing when running WooCommerce 4.x (e.g. with WooCommerce Admin) on WordPress < 5.3, since the tables are created but the callback to register the custom tables is never hooked.
2020-03-12 15:00:03 +00:00
Steve Grunwell
86d44e74bb
Make WC_Tests_CRUD_Data::onNotSuccessfulTest() compatible with its parent declaration
2020-03-11 16:35:36 +00:00
vedanshujain
a2418156d4
Add tests
2020-03-11 20:47:24 +05:30
Vedanshu Jain
6f2b232fc7
Merge pull request #25734 from woocommerce/fix/25650
...
Fixed caching for order item on deletion
2020-02-27 13:48:44 +05:30
Ron Rennick
25ab5596a2
fix composer.lock conflict
2020-02-25 15:00:55 -04:00
Ron Rennick
77d6dc1342
update WCA class namespace in unit tests
2020-02-24 23:22:11 -04:00
Ron Rennick
2d70a48361
bump action scheduler version, add queue unit tests
2020-02-24 21:45:19 -04:00
Christopher Allford
6a292de9f9
Cleared the cache when order items are added, updated, or deleted
2020-02-23 12:41:33 -08:00
vedanshujain
ca5fd12103
Add setting to configure hash appends
2020-02-07 17:54:54 +05:30
vedanshujain
56176e0479
Append unique hash to filename for added security
2020-02-07 17:54:54 +05:30
Christopher Allford
b5d5be7df1
Removed the admin screen checking in favor of good old fashioned request parameters for COD gateway setting loading
2020-02-06 12:29:01 -08:00
Peter Fabian
7233dc8a2e
Merge pull request #25011 from woocommerce/try/add-wc-admin
...
wc-admin: Include package
2020-02-06 12:09:25 +01:00
Peter Fabian
ee865fe0b4
Merge pull request #25504 from woocommerce/update/order-detail-summary
...
Enhance order details and payment summary
2020-02-06 11:40:45 +01:00
Peter Fabian
d3a33f8d05
Merge pull request #24943 from woocommerce/refactor/eu-vat-brexit
...
Brexit and VAT refactor
2020-02-05 19:41:40 +01:00
Christopher Allford
92708dde1f
Merge pull request #25512 from woocommerce/fix/25438.2
...
Fixed unnecessary loading when constructing COD payment gateway
2020-02-05 10:02:38 -08:00
Peter Fabian
5ba2cdafa5
Merge pull request #25183 from om4james/webhook-de-duplication
...
Fix for Duplicate Webhook deliveries
2020-02-05 18:38:15 +01:00
Claudio Sanches
5b9937ad48
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:51 -03:00
Christopher Allford
2f024ff024
Added tab check to COD gateway options loading
2020-02-05 06:49:33 -08:00
Claudio Sanches
f5d2c98c3e
Updated unit test
2020-02-05 11:16:29 -03:00
Claudio Sanches
74768d8abd
Remove test
2020-02-05 11:13:16 -03:00
Rodrigo Primo
f539d3e04b
Merge branch 'master' into update/emogrifier
2020-02-05 10:01:38 -03:00
Rodrigo Primo
ff05b06e6b
Merge branch 'master' into update/emogrifier
2020-02-05 09:56:03 -03:00
Peter Fabian
87e42acd56
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:20 +01:00
vedanshujain
d19c470686
Add sanity test around order and customer permissions
2020-02-05 15:42:15 +05:30
Paul Sealock
4380087608
wc-admin: Include package
2020-02-04 16:01:57 -08:00
Christopher Allford
b9ceabaa52
Utilized the constants package to fix the failing tests
2020-02-04 15:50:23 -08:00
Christopher Allford
1d15df860e
Merge branch 'master' into fix/25438.2
2020-02-04 15:06:26 -08:00
Christopher Allford
57734ca8ce
Merge branch 'master' into refactor/add-jetpack-constants
2020-02-04 14:36:35 -08:00
Rodrigo Primo
fb3b977a16
Add test to make sure that negative fees never make order total negative
...
For some reason unknown to me, the following commit added logic to make
sure that negative fees never make the order total negative: 804feb9333
Probably by accident, commit 4326e39250
changed this logic when `$fees_total += $item->get_total()` was replaced by `$fees_total += $fee_total`:
4326e39250 (diff-9b4164165828b26c4b7aec01c7b17884R1594)
This commit adds a failing test that ensures that the old behavior is
tested. This test needs to be fixed before we merge the changes proposed
in PR #25504 .
2020-02-04 15:33:21 -03:00
Rodrigo Primo
08e0936aa6
Improve coverage of WC_Abstract_Order::calculate_totals() test
...
This commits improves the coverage of the
WC_Abstract_Order::calculate_totals() test by including a fee to the
order used to test the method.
2020-02-04 15:26:52 -03:00
Rodrigo Primo
b87d0e26fe
Add basic unit test for WC_Abstract_Order::get_total_fees()
2020-02-04 15:13:27 -03:00
Claudio Sanches
94d1b742ad
Merge pull request #25545 from woocommerce/prep/after-3.9
...
Bumped versions for the upcoming release.
2020-02-04 13:05:27 -03:00
Peter Fabian
4a506ebcf7
Merge pull request #25530 from woocommerce/fix/country-region-label
...
Fix/country region label
2020-02-04 13:54:22 +01:00
Peter Fabian
f57fef5bdd
Updated unit tests.
2020-02-04 13:45:28 +01:00
Christopher Allford
c5e1fc6c45
Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants
2020-02-03 11:50:16 -08:00
Peter Fabian
e613056634
This perhaps better represents the spirit of the test.
2020-02-01 14:19:22 +01:00
Christopher Allford
1d1413b4ee
Replaced direct access of many constants with the Constants library
2020-01-31 22:18:47 -08:00
Peter Fabian
132ced6039
Fixed test for 4.0.
2020-01-31 21:05:50 +01:00