Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Jul 6, 2022
1 parent 56db2e4 commit 6764257
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/search/includes/classes/test-class-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -3110,10 +3110,7 @@ public function test__are_es_constants_defined__no_endpoints() {
public function test__filter_ep_enable_do_weighting() {
$this->search_instance->init();

$should_do_weighting = true;
$weight_config = $args = $formatted_args = [];

$this->assertFalse( apply_filters( 'ep_enable_do_weighting', $should_do_weighting, $weight_config, $args, $formatted_args ) );
$this->assertFalse( apply_filters( 'ep_enable_do_weighting', true, [], [], [] ) );

add_filter(
'ep_weighting_configuration_for_search',
Expand All @@ -3122,7 +3119,7 @@ function( $weight_config ) {
}
);

$this->assertTrue( apply_filters( 'ep_enable_do_weighting', $should_do_weighting, $weight_config, $args, $formatted_args ) );
$this->assertTrue( apply_filters( 'ep_enable_do_weighting', true, [], [], [] ) );
}

/**
Expand Down

0 comments on commit 6764257

Please sign in to comment.