test: migrate to Yoast WP test utils and work around incompatibilities

This commit is contained in:
2024-03-24 11:27:40 +01:00
parent 5f1e1a7879
commit fc957fd3b4
4 changed files with 22 additions and 32 deletions

View File

@ -13,12 +13,12 @@ use DateInterval;
use DateTime;
use WP_REST_Request;
use WP_REST_Server;
use WP_UnitTestCase;
use Yoast\WPTestUtils\WPIntegration\TestCase;
/**
* Class Test_API.
*/
class Test_API extends WP_UnitTestCase {
class Test_API extends TestCase {
/**
* Initialize WP REST API for tests.
*