diff --git a/.gitignore b/.gitignore index 528499d2..814c3c83 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Unit tests /tmp /tests/bin/tmp +.phpunit.cache # Numerous always-ignore extensions .diff diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 00000000..502039f3 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,25 @@ +register(); + + do_action( 'plugins_loaded' ); + + $this->assertTrue( class_exists( '\Plausible\Analytics\WP\Setup' ) ); + + define( 'WP_ADMIN', true ); + + $class->register(); + + do_action( 'plugins_loaded' ); + + $this->assertTrue( class_exists( '\Plausible\Analytics\WP\Admin\SelfHosted' ) ); + } +}