Make WordPress Core


Ignore:
Timestamp:
01/13/2017 04:37:03 AM (9 years ago)
Author:
SergeyBiryukov
Message:

REST API: Improve error messages for number relational validation.

Props jblz.
Fixes #39054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php

    r39126 r39896  
    187187        $data = $response->get_data();
    188188        $first_error = array_shift( $data['data']['params'] );
    189         $this->assertContains( 'page must be greater than 1 (inclusive)', $first_error );
     189        $this->assertContains( 'page must be greater than or equal to 1', $first_error );
    190190    }
    191191
Note: See TracChangeset for help on using the changeset viewer.