From 90bae59c43842d33de2db1760f7fa05a6ffa9845 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Fri, 12 Nov 2021 18:54:25 +0530 Subject: [PATCH] Fix polyfill path. --- plugins/woocommerce/tests/legacy/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/tests/legacy/bootstrap.php b/plugins/woocommerce/tests/legacy/bootstrap.php index 645d839d1e8..ef29235d8bd 100644 --- a/plugins/woocommerce/tests/legacy/bootstrap.php +++ b/plugins/woocommerce/tests/legacy/bootstrap.php @@ -71,7 +71,7 @@ class WC_Unit_Tests_Bootstrap { * Load PHPUnit Polyfills for the WP testing suite. * @see https://github.com/WordPress/wordpress-develop/pull/1563/ */ - define( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH', __DIR__ . '/../vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php' ); + define( 'WP_TESTS_PHPUNIT_POLYFILLS_PATH', __DIR__ . '/../../vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php' ); // load the WP testing environment. require_once $this->wp_tests_dir . '/includes/bootstrap.php';