- Timestamp:
- 10/30/2025 11:54:22 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r60987 r61089 171 171 parent::set_up(); 172 172 $this->endpoint = new WP_REST_Comments_Controller(); 173 wp_create_initial_comment_meta(); 174 173 175 if ( is_multisite() ) { 174 176 update_site_option( 'site_admins', array( 'superadmin' ) ); … … 3889 3891 $response = rest_get_server()->dispatch( $request ); 3890 3892 $this->assertSame( 201, $response->get_status() ); 3893 3894 $data = $response->get_data(); 3895 $this->assertArrayHasKey( 'meta', $data ); 3896 $this->assertArrayHasKey( '_wp_note_status', $data['meta'] ); 3897 $this->assertSame( $status, $data['meta']['_wp_note_status'] ); 3891 3898 } 3892 3899
Note: See TracChangeset
for help on using the changeset viewer.