diff --git a/tests/integration/HelpersTest.php b/tests/integration/HelpersTest.php index 6a9971d..d2def51 100644 --- a/tests/integration/HelpersTest.php +++ b/tests/integration/HelpersTest.php @@ -89,6 +89,11 @@ public function testGetFilename() { add_filter( 'plausible_analytics_settings', [ $this, 'enableSearch' ] ); + global $wp_query; + + $wp_query = new \WP_Query(); + $wp_query->query( 's=test' ); + $filename = Helpers::get_filename(); $this->assertEquals( 'plausible.pageview-props.manual', $filename );