test
This commit is contained in:
parent
23f1f3bd35
commit
8c8af01258
3 changed files with 5 additions and 1 deletions
|
@ -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 install
|
||||
- phpunit --configuration phpunit.xml.dist
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
"squizlabs/php_codesniffer": "3.*",
|
||||
"wp-coding-standards/wpcs": "dev-develop",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
|
||||
"sirbrillig/phpcs-variable-analysis": "^2.11"
|
||||
"sirbrillig/phpcs-variable-analysis": "^2.11",
|
||||
"yoast/phpunit-polyfill": "*"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": true
|
||||
|
|
|
@ -11,6 +11,8 @@ 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 ) {
|
||||
|
|
Loading…
Reference in a new issue