Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/31/2024 08:09:06 PM (18 months ago)
Author:
imath
Message:

Update wp-env to version 9.0.0 & adapt the PHPUnit tests suite to it

  • 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 https://github.com/buddypress/buddypress/pull/211

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/define-constants.php

    r12853 r13720  
    2121 *   up the directory tree
    2222 */
    23 if ( false !== getenv( 'WP_PHPUNIT__DIR' ) && defined( 'BP_USE_WP_ENV_TESTS' ) ) {
    24     define( 'WP_TESTS_DIR', getenv( 'WP_PHPUNIT__DIR' ) );
    25     define( 'WP_ROOT_DIR', '/var/www/html' );
    26 } elseif ( false !== getenv( 'WP_TESTS_DIR' ) ) {
     23if ( false !== getenv( 'WP_TESTS_DIR' ) ) {
    2724    define( 'WP_TESTS_DIR', getenv( 'WP_TESTS_DIR' ) );
    2825    define( 'WP_ROOT_DIR', WP_TESTS_DIR );
Note: See TracChangeset for help on using the changeset viewer.