Commit Graph

35738 Commits

Author SHA1 Message Date
Claudio Sanches f3dc64679d Set an error ID for each WP_Error entry 2020-05-05 15:56:16 -03:00
Jonathan Sadowski 53c905f493 Reset request vars in any attribute test 2020-05-05 13:32:15 -05:00
Jonathan Sadowski c0a72c9185 Reset notices at the start of each test 2020-05-05 13:32:15 -05:00
Jonathan Sadowski 3f47608228 Test adding a variation with 'any' attributes 2020-05-05 13:32:15 -05:00
Jonathan Sadowski 790c8ae8ae Update the test to make sure there are no error notices 2020-05-05 13:32:15 -05:00
Jonathan Sadowski 3f70f70f3a Switch to assertCount for count assertions in test 2020-05-05 13:32:15 -05:00
Jonathan Sadowski 3d0bfd8ee2 Add test to check for notice when invalid attribute is provided for a variant 2020-05-05 13:32:14 -05:00
Jonathan Sadowski f8066a8141 Swap order of array_merge so that posted attributes do not get clobbered 2020-05-05 13:32:14 -05:00
Jonathan Sadowski 0c2b97ead2 Load variation attributes when adding to cart by variation id 2020-05-05 13:32:14 -05:00
Jonathan Sadowski 31bdce3725 Fix typo in test_add_variation_with_url test (use British spelling of colour) 2020-05-05 13:32:14 -05:00
Jonathan Sadowski fc683bdb80 Update unit tests to account for issue 24000 2020-05-05 13:32:14 -05:00
Claudio Sanches d6a17aad4e Request is internal 2020-05-05 14:05:53 -03:00
Claudio Sanches 1208f79476 Included view 2020-05-05 14:04:42 -03:00
Claudio Sanches d8b8601601 Updated uploads directory check and saved results on transients 2020-05-05 14:03:12 -03:00
vedanshujain a74f06f337 Add exception for tests/php for filename sniff because it conflicts with PSR4. 2020-05-05 19:22:21 +05:30
vedanshujain 27ad4a552e Rename file and class to resemble PSR4 like convention for consistency. 2020-05-05 19:19:37 +05:30
vedanshujain ae68e16070 Add back phpcs for legacy because we still want it tested.
There are lots of tests in legacy folder which we might update from time to time. Its still a good idea to keep phpcs for the folder.
2020-05-05 18:50:54 +05:30
Christopher Allford 7a81d940ca Added the Gruntfile to its own ESLint task 2020-05-04 20:58:58 -07:00
Christopher Allford 9283e33a1c Added ESLint back to the JS Grunt task
I fixed all the style violations *grumble grumble*
2020-05-04 20:52:28 -07:00
Christopher Allford 0d6675b490 Corrected ESLint violations in JS files 2020-05-04 20:49:29 -07:00
Claudio Sanches 744724b9f7
Merge pull request #26346 from woocommerce/renovate/docker-wordpress-5.x
Update wordpress Docker tag to v5.4.1
2020-05-04 22:48:51 -03:00
Claudio Sanches a15ef0ff16
Merge pull request #26354 from woocommerce/renovate/husky-4.x
Update dependency husky to v4.2.5
2020-05-04 22:26:45 -03:00
Claudio Sanches 040944fda6 Updated notice 2020-05-04 22:20:03 -03:00
Claudio Sanches fdea6de347 Check for user meta data first 2020-05-04 22:12:24 -03:00
Claudio Sanches 54625f9712 Fixed check 2020-05-04 22:11:56 -03:00
Claudio Sanches 15f71015e6 Improved method naming 2020-05-04 22:11:02 -03:00
Christopher Allford 90b271882d Removed jshint in favor of exclusively using eslint
I've also removed eslint from the Grunt JS task so that builds will not fail due to non-compliant code present prior to the shift. Since eslint is ran during our pre-commit hooks, we can be sure that eventually code should become compliant.
2020-05-04 12:27:15 -07:00
Ron Rennick 97a6110ae4 combine puppeteer config files 2020-05-04 16:16:21 -03:00
Ron Rennick 4af4d29952 Simplify nodejs caching directive
- per https://docs.travis-ci.com/user/caching/
2020-05-04 11:31:14 -03:00
Leon Francis Shelhamer fe3de4f02c Change conditional to wc_shipping_enabled
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-02 18:12:16 -04:00
Leon Francis Shelhamer 7f5dd5c997 Use function to handle plurals
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-02 18:11:35 -04:00
Dominic c38e059ce8 Pass $customer to woocommerce_match_rates hook.
This allows tax related plugins to get more data on the customer and
make better decisions on the correct tax rate to apply.

Fixes #25787
2020-05-01 13:49:55 -07:00
vedanshujain 62ef169940 Simplified logic for better readability. 2020-05-02 00:31:54 +05:30
vedanshujain f4e169f21e Moved test specific logic from bootstrap to test file 2020-05-02 00:31:54 +05:30
vedanshujain 28fd8850fa Deleted accidently added file 2020-05-01 23:16:32 +05:30
vedanshujain 13dfb8180f Add unit test and a sample Woo plugin file 2020-05-01 22:47:08 +05:30
Ron Rennick 71fb49dc06 restore latest default.json from master 2020-05-01 13:28:59 -03:00
vedanshujain e97fd683c6 Add extra comments 2020-05-01 21:19:25 +05:30
vedanshujain 57e2e82961 Clear plugin cache if WC header are not present to load with WC headers.
WC headers are added in filter `extra_plugin_headers`, however, in case when WooCommerce is activated/updated, `get_plugins` will be called and cache will be set before this filter can be cached.

Also, `get_plugins` call is expensive even with update cache present, so we should clear it very conservatively.
2020-05-01 21:14:21 +05:30
Ron Rennick 78e777f25f restore travis e2e setup script 2020-05-01 10:18:21 -03:00
Renovate Bot 4e557af6ea
Update dependency husky to v4.2.5 2020-05-01 02:28:59 +00:00
Ron Rennick 6726f6423d merge travis config files 2020-04-30 19:58:37 -03:00
Christopher Allford c0ecb79ba2
Merge pull request #26345 from woocommerce/refactor/phpunit-suite
Restructure PHPUnit Suite
2020-04-30 13:51:16 -07:00
Renovate Bot ad29fa955b
Update wordpress Docker tag to v5.4.1 2020-04-30 19:44:45 +00:00
Ron Rennick 7fbbbf6608 update travis config 2020-04-30 16:43:36 -03:00
Christopher Allford 857b2231f7 Added a phpcs exclusion to legacy unit tests 2020-04-30 12:43:22 -07:00
Christopher Allford 98b6b973e8 Updated the tests readme to explain the purpose of our two test directories 2020-04-30 10:09:42 -07:00
Ron Rennick 0de3718770 change component name to e2e-environment 2020-04-30 14:01:42 -03:00
Ron Rennick 105cea27c5 fix merge conflicts 2020-04-30 13:34:29 -03:00
xristos3490 cb9dc9ed44 Add param doc comment 2020-04-30 11:34:01 +03:00