diff --git a/tests/phpunit/tests/rest-api/rest-post-meta-fields.php b/tests/phpunit/tests/rest-api/rest-post-meta-fields.php
index 2b24cfc667..8679de8e78 100644
a
|
b
|
class WP_Test_REST_Post_Meta_Fields extends WP_Test_REST_TestCase { |
1050 | 1050 | |
1051 | 1051 | $meta = get_post_meta( self::$post_id, 'test_multi', false ); |
1052 | 1052 | $this->assertEmpty( $meta ); |
| 1053 | |
| 1054 | // Send the Request again to verifiy that the REST API return no error |
| 1055 | |
| 1056 | $request = new WP_REST_Request( 'POST', sprintf( '/wp/v2/posts/%d', self::$post_id ) ); |
| 1057 | $request->set_body_params( $data ); |
| 1058 | |
| 1059 | $response = rest_get_server()->dispatch( $request ); |
| 1060 | $this->assertSame( 200, $response->get_status() ); |
1053 | 1061 | } |
1054 | 1062 | |
1055 | 1063 | public function test_remove_multi_value_db_error() { |