From 6caed3b41232f91dfddfc550b194220d01dc89dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20W=C3=BCnsch?= Date: Wed, 24 Jun 2026 13:31:38 +0200 Subject: [PATCH] Tests: Remove unnecessary `sprintf()` call in `wpAfterInsertPost` tests. --- tests/phpunit/tests/post/wpAfterInsertPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/post/wpAfterInsertPost.php b/tests/phpunit/tests/post/wpAfterInsertPost.php index 621b93151e9c1..c312096245af5 100644 --- a/tests/phpunit/tests/post/wpAfterInsertPost.php +++ b/tests/phpunit/tests/post/wpAfterInsertPost.php @@ -187,7 +187,7 @@ public function test_update_via_rest_controller() { public function test_new_post_via_rest_controller() { wp_set_current_user( self::$admin_id ); - $request = new WP_REST_Request( 'POST', sprintf( '/wp/v2/posts' ) ); + $request = new WP_REST_Request( 'POST', '/wp/v2/posts' ); $request->add_header( 'Content-Type', 'application/x-www-form-urlencoded' ); $request->set_body_params( array(