Skip to content

Commit

Permalink
Build/Tests: remove redundant @requires tags
Browse files Browse the repository at this point in the history
As the minimum supported PHPUnit version has been upped to PHPUnit 5.7.21, these `@requires` tags are now redundant.
  • Loading branch information
jrfnl committed Aug 7, 2021
1 parent 3f49eb8 commit 7c51837
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tests/phpunit/tests/rest-api/rest-request.php
Expand Up @@ -1008,7 +1008,6 @@ public function test_set_param_with_invalid_json() {

/**
* @ticket 51255
* @requires PHPUnit >= 5.5
*/
public function test_route_level_validate_callback() {
$request = new WP_REST_Request();
Expand All @@ -1033,7 +1032,6 @@ public function test_route_level_validate_callback() {

/**
* @ticket 51255
* @requires PHPUnit >= 5.5
*/
public function test_route_level_validate_callback_no_parameter_callbacks() {
$request = new WP_REST_Request();
Expand All @@ -1053,7 +1051,6 @@ public function test_route_level_validate_callback_no_parameter_callbacks() {

/**
* @ticket 51255
* @requires PHPUnit >= 5.5
*/
public function test_route_level_validate_callback_is_not_executed_if_parameter_validation_fails() {
$request = new WP_REST_Request();
Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/tests/rest-api/rest-server.php
Expand Up @@ -1571,7 +1571,6 @@ public function test_invalid_handler() {

/**
* @ticket 50244
* @requires PHPUnit >= 5.5
*/
public function test_callbacks_are_not_executed_if_request_validation_fails() {
$callback = $this->createPartialMock( 'stdClass', array( '__invoke' ) );
Expand Down

0 comments on commit 7c51837

Please sign in to comment.