test
Some checks failed
ci/woodpecker/push/test Pipeline failed
/ test (push) Successful in 0s

This commit is contained in:
André Menrath 2024-09-20 22:21:10 +02:00
parent d57ab3fdfa
commit 29674fcc73
2 changed files with 1 additions and 2 deletions

View file

@ -11,6 +11,7 @@ steps:
- apt-get -yqqf install zip unzip subversion - apt-get -yqqf install zip unzip subversion
- docker-php-ext-enable mbstring mysqli intl gd zip - docker-php-ext-enable mbstring mysqli intl gd zip
- bash bin/install-wp-tests.sh wordpress_tests root mysql mysql latest true - bash bin/install-wp-tests.sh wordpress_tests root mysql mysql latest true
- composer require --dev yoast/phpunit-polyfills:"^3.0"
- composer install - composer install
- phpunit --configuration phpunit.xml.dist - phpunit --configuration phpunit.xml.dist

View file

@ -11,8 +11,6 @@ if ( ! $_tests_dir ) {
$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib'; $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
} }
require dirname( dirname( __FILE__ ) ) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php';
// Forward custom PHPUnit Polyfills configuration to PHPUnit bootstrap file. // Forward custom PHPUnit Polyfills configuration to PHPUnit bootstrap file.
$_phpunit_polyfills_path = getenv( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ); $_phpunit_polyfills_path = getenv( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' );
if ( false !== $_phpunit_polyfills_path ) { if ( false !== $_phpunit_polyfills_path ) {