diff --git a/tests/bootstrap-phpunit.php b/tests/bootstrap-phpunit.php index 523f230..686b036 100644 --- a/tests/bootstrap-phpunit.php +++ b/tests/bootstrap-phpunit.php @@ -23,12 +23,12 @@ global $wp_tests_options; // WP testing library uses this to define option values. -$wp_tests_options = [ - 'active_plugins' => [ +$wp_tests_options = array( + 'active_plugins' => array( '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'; diff --git a/tests/phpunit/class-plugin-test.php b/tests/phpunit/class-plugin-test.php index 2dc65fb..121d55c 100644 --- a/tests/phpunit/class-plugin-test.php +++ b/tests/phpunit/class-plugin-test.php @@ -1,7 +1,14 @@ assertTrue( class_exists( 'Cf7_Extras' ), 'Plugin is active' ); } }