Skip to content

Commit

Permalink
Fixed: HelpersTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Jul 18, 2024
1 parent c6b1c11 commit 28df43f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 28df43f

Please sign in to comment.