From a8fe8fea1b974cbd9c7bee34627664faf85e0cfd Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Mon, 16 Dec 2024 12:35:42 +0200 Subject: [PATCH] Per linter --- tests/bootstrap-phpunit.php | 8 ++++---- tests/phpunit/class-plugin-test.php | 9 ++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) 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' ); } }