WordPress.org

Make WordPress Core

Changeset 51226


Ignore:
Timestamp:
06/24/2021 10:04:41 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Tests: Require PHPUnit >= 6 in tests using ::createPartialMock().

This avoids a "Call to undefined method" fatal error when running the tests with PHPUnit 5.4.x, which WordPress still supports as the minimum version.

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

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

    r50484 r51226  
    10091009    /**
    10101010     * @ticket 51255
     1011     * @requires PHPUnit >= 6
    10111012     */
    10121013    public function test_route_level_validate_callback() {
     
    10331034    /**
    10341035     * @ticket 51255
     1036     * @requires PHPUnit >= 6
    10351037     */
    10361038    public function test_route_level_validate_callback_no_parameter_callbacks() {
     
    10521054    /**
    10531055     * @ticket 51255
     1056     * @requires PHPUnit >= 6
    10541057     */
    10551058    public function test_route_level_validate_callback_is_not_executed_if_parameter_validation_fails() {
  • trunk/tests/phpunit/tests/rest-api/rest-server.php

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