Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Dec 2, 2024
1 parent 4c12f48 commit f119b28
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ public function test_get_items_with_head_request_should_not_prepare_taxonomy_dat
add_filter( $hook_name, $callback );
$response = rest_get_server()->dispatch( $request );
remove_filter( $hook_name, $callback );

$this->assertSame( 200, $response->get_status(), 'The response status should be 200.' );

$this->assertSame( 0, $filter->get_call_count(), 'The "' . $hook_name . '" filter was called when it should not be for HEAD requests.' );
$this->assertNull( $response->get_data(), 'The server should not generate a body in response to a HEAD request.' );
}
Expand Down

0 comments on commit f119b28

Please sign in to comment.