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

This commit is contained in:
André Menrath 2024-09-20 22:08:20 +02:00
parent 23f1f3bd35
commit 8c8af01258
3 changed files with 5 additions and 1 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 install
- phpunit --configuration phpunit.xml.dist - phpunit --configuration phpunit.xml.dist

View file

@ -12,7 +12,8 @@
"squizlabs/php_codesniffer": "3.*", "squizlabs/php_codesniffer": "3.*",
"wp-coding-standards/wpcs": "dev-develop", "wp-coding-standards/wpcs": "dev-develop",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"sirbrillig/phpcs-variable-analysis": "^2.11" "sirbrillig/phpcs-variable-analysis": "^2.11",
"yoast/phpunit-polyfill": "*"
}, },
"config": { "config": {
"allow-plugins": true "allow-plugins": true

View file

@ -11,6 +11,8 @@ 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 ) {