Skip to content

Commit

Permalink
transpile #754
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Sep 10, 2024
1 parent 7bd77c0 commit ce69389
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Doc-block namespace in the `WPRestApiTestCase` class, thanks @TimothyBJacobs.

## [3.7.2] 2024-09-09;

- `WPLoader::_beforeSuite` method signature to avoid breaking compatibility with Codeception 4.x.

## [3.7.1] 2024-09-07;
Expand Down
8 changes: 4 additions & 4 deletions includes/core-phpunit/includes/testcase-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ abstract class WPRestApiTestCase extends WPTestCase {
* @since 4.4.0
* @since 6.6.0 Added the `$message` parameter.
*
* @param string|int $code Expected error code.
* @param WP_REST_Response|WP_Error $response REST API response.
* @param int $status Optional. Status code.
* @param string $message Optional. Message to display when the assertion fails.
* @param string|int $code Expected error code.
* @param \WP_REST_Response|\WP_Error $response REST API response.
* @param int $status Optional. Status code.
* @param string $message Optional. Message to display when the assertion fails.
*/
protected function assertErrorResponse( $code, $response, $status = null, $message = '' ) {

Expand Down

0 comments on commit ce69389

Please sign in to comment.