Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt our npm/composer PHPUnit scripts to wp-env v9.0.0 #211

Closed
wants to merge 2 commits into from

Conversation

imath
Copy link
Member

@imath imath commented Jan 1, 2024

  • Updates package.json @wordpress/env version and PHPUnit related scripts
  • Adds a script to ease multisite PHPunit testing in composer.json
  • Fixes some failing tests in wp-env due to the way the site domain is defined.

PS: some constant/config files may not be needed anymore (eg: BP_USE_WP_ENV_TESTS or env.xml).

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9053


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

@imath
Copy link
Member Author

imath commented Jan 1, 2024

Unit Testing when WordPress version is < 6.1 still needs some work and seems to be the only case where we need the wp-phpunit/wp-phunit composer package and constant/config files like BP_USE_WP_ENV_TESTS or env.xml.

@imath imath deleted the update/wp-env-to-9-0 branch January 31, 2024 20:27
dcavins pushed a commit to dcavins/buddypress-wp-svn that referenced this pull request Feb 8, 2024
- Update PHPUnit related npm scripts for `wp-env` 9.0.0.
- Create `test_multi`: a new composer script to run Multisite Unit tests.
- Remove our composer dependency to `wp-phpunit/wp-phpunit`.
- Update the PHPUnit tests suite so that it stops using `wp-phpunit/wp-phpunit` when it's within the `wp-env` context.
- Remove no more used PHPUnit specific configuration files.

Fixes #9053
Closes buddypress/buddypress#211



git-svn-id: http://buddypress.svn.wordpress.org/trunk@13720 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant