From 71cee15895775cd84cfab139ead02ff4ab9feedc Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 26 Aug 2024 21:51:21 +0200 Subject: [PATCH] Fix test --- tests/phpunit/tests/REST_Attachments_Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/REST_Attachments_Controller.php b/tests/phpunit/tests/REST_Attachments_Controller.php index c3c5c468..0c32924f 100644 --- a/tests/phpunit/tests/REST_Attachments_Controller.php +++ b/tests/phpunit/tests/REST_Attachments_Controller.php @@ -479,7 +479,7 @@ public function test_sideload_item() { $response = rest_get_server()->dispatch( $request ); $data = $response->get_data(); - $this->assertSame( 201, $response->get_status() ); + $this->assertSame( 200, $response->get_status() ); $this->assertSame( 'image', $data['media_type'] ); $this->assertArrayHasKey( 'missing_image_sizes', $data ); $this->assertEmpty( $data['missing_image_sizes'] );