Unit Tests: Fix WooCommerce tests bootstrap #13080
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, WooCommerce tests are broken. We tried to add some test cases in #13079, but we were unable to run the tests.
The reason seems to be simple: our WooCommerce tests have a hardcoded bit where they load files from the WooCommerce test framework (borrowed from their unit test bootstrap), and some of the file names were obsolete.
This PR fixes those by using the includes from the latest WooCommerce master.
Changes proposed in this Pull Request:
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Needed for #13079.
Testing instructions:
/docker/wp-content/plugins/woocommerce, and WooCommerce is built (composer install,npm install,npm run buildin the woo dir does the job).yarn docker:shcd wp-content/plugins/jetpackJETPACK_TEST_WOOCOMMERCE=1 phpunit --filter WP_Test_Jetpack_Sync_WooCommerceProposed changelog entry for your changes: