Skip to content

Commit

Permalink
Rename the test methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Dec 9, 2024
1 parent ba88c7f commit 9c91e45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ protected function check_get_taxonomy_term_response( $response ) {
*
* @param string $method HTTP method to use.
*/
public function test_get_items_returns_only_fetches_ids_for_head_requests( $method ) {
public function test_get_items_only_fetches_ids_for_head_requests( $method ) {
$is_head_request = 'HEAD' === $method;
$request = new WP_REST_Request( $method, '/wp/v2/categories' );

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/rest-api/rest-posts-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ public function data_readable_http_methods() {
*
* @param string $method HTTP method to use.
*/
public function test_get_items_returns_only_fetches_ids_for_head_requests( $method ) {
public function test_get_items_only_fetches_ids_for_head_requests( $method ) {
$is_head_request = 'HEAD' === $method;
$request = new WP_REST_Request( $method, '/wp/v2/posts' );

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/rest-api/rest-tags-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ protected function check_get_taxonomy_term_response( $response, $id ) {
*
* @param string $method HTTP method to use.
*/
public function test_get_items_returns_only_fetches_ids_for_head_requests( $method ) {
public function test_get_items_only_fetches_ids_for_head_requests( $method ) {
$is_head_request = 'HEAD' === $method;
$request = new WP_REST_Request( $method, '/wp/v2/tags' );

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/rest-api/rest-users-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -3186,7 +3186,7 @@ public function test_get_item_with_head_request_should_not_prepare_user_data() {
*
* @param string $method HTTP method to use.
*/
public function test_get_items_returns_only_fetches_ids_for_head_requests( $method ) {
public function test_get_items_only_fetches_ids_for_head_requests( $method ) {
$is_head_request = 'HEAD' === $method;
$request = new WP_REST_Request( $method, '/wp/v2/users' );

Expand Down

0 comments on commit 9c91e45

Please sign in to comment.