Skip to content

Commit 67fc415

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51234 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8ffb74a commit 67fc415

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/phpunit/tests/rest-api/rest-request.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ public function test_set_param_with_invalid_json() {
10081008

10091009
/**
10101010
* @ticket 51255
1011-
* @requires PHPUnit >= 6
1011+
* @requires PHPUnit >= 5.5
10121012
*/
10131013
public function test_route_level_validate_callback() {
10141014
$request = new WP_REST_Request();
@@ -1033,7 +1033,7 @@ public function test_route_level_validate_callback() {
10331033

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() {
10391039
$request = new WP_REST_Request();
@@ -1053,7 +1053,7 @@ public function test_route_level_validate_callback_no_parameter_callbacks() {
10531053

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() {
10591059
$request = new WP_REST_Request();

tests/phpunit/tests/rest-api/rest-server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ public function test_invalid_handler() {
15711571

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() {
15771577
$callback = $this->createPartialMock( 'stdClass', array( '__invoke' ) );

0 commit comments

Comments
 (0)