Make WordPress Core

Changeset 51234


Ignore:
Timestamp:
06/25/2021 10:38:23 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct PHPUnit version requirement in tests using ::createPartialMock().

The method was introduced in PHPUnit 5.5, not 6.0.

Follow-up to [48945], [48947] [51226].

See #52625.

Location:
trunk/tests/phpunit/tests/rest-api
Files:
2 edited

Legend:

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

    r51226 r51234  
    10091009    /**
    10101010     * @ticket 51255
    1011      * @requires PHPUnit >= 6
     1011     * @requires PHPUnit >= 5.5
    10121012     */
    10131013    public function test_route_level_validate_callback() {
     
    10341034    /**
    10351035     * @ticket 51255
    1036      * @requires PHPUnit >= 6
     1036     * @requires PHPUnit >= 5.5
    10371037     */
    10381038    public function test_route_level_validate_callback_no_parameter_callbacks() {
     
    10541054    /**
    10551055     * @ticket 51255
    1056      * @requires PHPUnit >= 6
     1056     * @requires PHPUnit >= 5.5
    10571057     */
    10581058    public function test_route_level_validate_callback_is_not_executed_if_parameter_validation_fails() {
  • trunk/tests/phpunit/tests/rest-api/rest-server.php

    r51226 r51234  
    15721572    /**
    15731573     * @ticket 50244
    1574      * @requires PHPUnit >= 6
     1574     * @requires PHPUnit >= 5.5
    15751575     */
    15761576    public function test_callbacks_are_not_executed_if_request_validation_fails() {
Note: See TracChangeset for help on using the changeset viewer.