From 29674fcc73577abc37612ceb38c3fc5e374e7040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 20 Sep 2024 22:21:10 +0200 Subject: [PATCH] test --- .woodpecker/test.yml | 1 + tests/bootstrap.php | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 5b4b66c..9880c5c 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -11,6 +11,7 @@ steps: - apt-get -yqqf install zip unzip subversion - docker-php-ext-enable mbstring mysqli intl gd zip - bash bin/install-wp-tests.sh wordpress_tests root mysql mysql latest true + - composer require --dev yoast/phpunit-polyfills:"^3.0" - composer install - phpunit --configuration phpunit.xml.dist diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 57aadd2..72f381a 100755 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -11,8 +11,6 @@ if ( ! $_tests_dir ) { $_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. $_phpunit_polyfills_path = getenv( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH' ); if ( false !== $_phpunit_polyfills_path ) {