Skip to content

Commit

Permalink
Per linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 16, 2024
1 parent 73f048e commit a8fe8fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/bootstrap-phpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
9 changes: 8 additions & 1 deletion tests/phpunit/class-plugin-test.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<?php

/**
* Test the main plugin class.
*/
class Plugin_Test extends WP_UnitTestCase {
public function test_plugin_active() {

/**
* If the plugin class is available.
*/
public function test_plugin_available() {
$this->assertTrue( class_exists( 'Cf7_Extras' ), 'Plugin is active' );
}
}

0 comments on commit a8fe8fe

Please sign in to comment.