From 5387bc9afd0f3bbfcaccb95ac8afab05531327b0 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Mon, 16 Dec 2024 11:27:05 +0200 Subject: [PATCH] Activate the plugins --- tests/bootstrap-phpunit.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/bootstrap-phpunit.php b/tests/bootstrap-phpunit.php index a3057ac..523f230 100644 --- a/tests/bootstrap-phpunit.php +++ b/tests/bootstrap-phpunit.php @@ -21,6 +21,15 @@ putenv( sprintf( 'WP_PHPUNIT__TESTS_CONFIG=%s/wp-tests-config.php', $wp_env_tests_dir ) ); } +global $wp_tests_options; // WP testing library uses this to define option values. + +$wp_tests_options = [ + 'active_plugins' => [ + 'contact-form-7-extras/plugin.php', + 'contact-form-7/wp-contact-form-7.php', + ], +]; + // Include all helper functions. require_once $wp_tests_dir . '/includes/functions.php';