test
This commit is contained in:
parent
aa6e816196
commit
0dba6d1127
1 changed files with 4 additions and 0 deletions
|
@ -11,12 +11,16 @@ if ( ! $_tests_dir ) {
|
||||||
$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
|
$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo $_tests_dir;
|
||||||
|
|
||||||
// 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 ) {
|
||||||
define( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH', $_phpunit_polyfills_path );
|
define( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH', $_phpunit_polyfills_path );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo WP_TESTS_PHPUNIT_POLYFILLS_PATH;
|
||||||
|
|
||||||
if ( ! file_exists( "{$_tests_dir}/includes/functions.php" ) ) {
|
if ( ! file_exists( "{$_tests_dir}/includes/functions.php" ) ) {
|
||||||
echo "Could not find {$_tests_dir}/includes/functions.php, have you run bin/install-wp-tests.sh ?" . PHP_EOL; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
echo "Could not find {$_tests_dir}/includes/functions.php, have you run bin/install-wp-tests.sh ?" . PHP_EOL; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
|
|
Loading…
Reference in a new issue