Skip to content

Commit

Permalink
config(patches) update testcase-rest-api.php patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Sep 10, 2024
1 parent f1c94df commit abafba0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion config/patches/core-phpunit/includes/testcase-rest-api.php.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/includes/core-phpunit/includes/testcase-rest-api.php b/includes/core-phpunit/includes/testcase-rest-api.php
index 27349809..2107abfc 100644
index 99dd5e30..e9005563 100644
--- a/includes/core-phpunit/includes/testcase-rest-api.php
+++ b/includes/core-phpunit/includes/testcase-rest-api.php
@@ -1,6 +1,8 @@
Expand All @@ -12,3 +12,18 @@ index 27349809..2107abfc 100644

/**
* Asserts that the REST API response has the specified error.
@@ -8,10 +10,10 @@ abstract class WP_Test_REST_TestCase extends WP_UnitTestCase {
* @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 = '' ) {

0 comments on commit abafba0

Please sign in to comment.