Skip to content

Commit 27bd29d

Browse files
Ensure note resolution meta is registered before each test
1 parent 40103f7 commit 27bd29d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/phpunit/tests/rest-api/rest-comments-controller.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,23 @@ public function set_up() {
173173
if ( is_multisite() ) {
174174
update_site_option( 'site_admins', array( 'superadmin' ) );
175175
}
176+
// Ensure note resolution meta is registered.
177+
register_meta(
178+
'comment',
179+
'_wp_note_status',
180+
array(
181+
'type' => 'string',
182+
'description' => __( 'Note resolution status' ),
183+
'single' => true,
184+
'show_in_rest' => array(
185+
'schema' => array(
186+
'type' => 'string',
187+
'enum' => array( 'resolved', 'reopen' ),
188+
),
189+
),
190+
)
191+
);
192+
176193
}
177194

178195
public function test_register_routes() {

0 commit comments

Comments
 (0)