WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/24/2021 10:04:41 AM (5 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.

File:
1 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() {
Note: See TracChangeset for help on using the changeset viewer.