1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

fixes for latest woocommerce tests changes

This commit is contained in:
Pavel 2020-05-27 09:43:06 +03:00
parent eef81f506b
commit fdd463ba7f

View file

@ -23,7 +23,9 @@ function _manually_load_plugin() {
tests_add_filter('muplugins_loaded', '_manually_load_plugin');
require '/tmp/woocommerce/tests/bootstrap.php';
$wcBootstrap = '/tmp/woocommerce/tests/bootstrap.php';
$wcBootstrap = file_exists($wcBootstrap) ?: '/tmp/woocommerce/tests/legacy/bootstrap.php';
require $wcBootstrap;
$plugin_dir = dirname(dirname(__FILE__)) . '/';
// helpers