diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9127621..b62c4ff 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -38,6 +38,15 @@ DG\BypassFinals::enable(); +// Core files +require_once $_core_dir.'/wp-includes/formatting.php'; +require_once $_core_dir.'/wp-includes/functions.php'; +require_once $_core_dir.'/wp-includes/l10n.php'; +require_once $_core_dir.'/wp-includes/load.php'; +require_once $_core_dir.'/wp-includes/plugin.php'; +require_once $_core_dir.'/wp-includes/pomo/translations.php'; + +// Class files require_once $_core_dir.'/wp-admin/includes/class-wp-filesystem-base.php'; require_once $_core_dir.'/wp-admin/includes/class-wp-filesystem-direct.php'; require_once $_core_dir.'/wp-admin/includes/class-wp-site-icon.php'; @@ -52,7 +61,4 @@ require_once $_core_dir.'/wp-includes/class-wp-term.php'; require_once $_core_dir.'/wp-includes/class.wp-dependencies.php'; require_once $_core_dir.'/wp-includes/class.wp-scripts.php'; -require_once $_core_dir.'/wp-includes/formatting.php'; -require_once $_core_dir.'/wp-includes/functions.php'; -require_once $_core_dir.'/wp-includes/load.php'; require_once $_core_dir.'/wp-includes/rest-api/class-wp-rest-request.php'; diff --git a/tests/constants.php b/tests/constants.php index 0e94ba9..ae2bc3a 100644 --- a/tests/constants.php +++ b/tests/constants.php @@ -14,6 +14,7 @@ // WordPress constants define('ABSPATH', '/tmp/wordpress/'); +define('WP_DEBUG', false); define('WPINC', 'wp-includes'); define('MINUTE_IN_SECONDS', 60);