From 8ddebfb59441bd78da8700d256cd82ab89e10b17 Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Mon, 13 May 2024 09:30:57 +0200 Subject: [PATCH] build(includes/core-phpunit) correctly patch REST test case --- .../patches/core-phpunit/includes/testcase-rest-api.php.patch | 2 +- includes/core-phpunit/includes/testcase-rest-api.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/patches/core-phpunit/includes/testcase-rest-api.php.patch b/config/patches/core-phpunit/includes/testcase-rest-api.php.patch index abdd42b2b..f8fb3793f 100644 --- a/config/patches/core-phpunit/includes/testcase-rest-api.php.patch +++ b/config/patches/core-phpunit/includes/testcase-rest-api.php.patch @@ -8,7 +8,7 @@ index 27349809..2107abfc 100644 -abstract class WP_Test_REST_TestCase extends WP_UnitTestCase { +namespace lucatume\WPBrowser\TestCase; + -+abstract class WP_Test_REST_TestCase extends WPTestCase { ++abstract class WPRestApiTestCase extends WPTestCase { /** * Asserts that the REST API response has the specified error. diff --git a/includes/core-phpunit/includes/testcase-rest-api.php b/includes/core-phpunit/includes/testcase-rest-api.php index aed00ccec..a9b9f6e9e 100644 --- a/includes/core-phpunit/includes/testcase-rest-api.php +++ b/includes/core-phpunit/includes/testcase-rest-api.php @@ -2,7 +2,7 @@ namespace lucatume\WPBrowser\TestCase; -abstract class WP_Test_REST_TestCase extends WPTestCase { +abstract class WPRestApiTestCase extends WPTestCase { /** * Asserts that the REST API response has the specified error.