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/bootstrap.php

    r13314 r13720  
    11<?php
    22const WP_TESTS_PHPUNIT_POLYFILLS_PATH = __DIR__ . '/../../vendor/yoast/phpunit-polyfills';
    3 
    4 if ( defined( 'BP_USE_WP_ENV_TESTS' ) ) {
    5     // wp-env setup.
    6     define( 'WP_TESTS_CONFIG_FILE_PATH', dirname( __FILE__ ) . '/assets/phpunit-wp-config.php' );
    7     define( 'WP_TESTS_CONFIG_PATH', WP_TESTS_CONFIG_FILE_PATH );
    8 
    9     // Use WP PHPUnit.
    10     require_once dirname( dirname( dirname( __FILE__ ) ) ) . '/vendor/wp-phpunit/wp-phpunit/__loaded.php';
    11 }
    123
    134require( dirname( __FILE__ ) . '/includes/define-constants.php' );
Note: See TracChangeset for help on using the changeset viewer.