Skip to content

Commit f52eedb

Browse files
Ensure the note status meta is set correctly
1 parent 061d8be commit f52eedb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3888,6 +3888,11 @@ public function test_create_empty_note_with_resolution_meta( $status ) {
38883888

38893889
$response = rest_get_server()->dispatch( $request );
38903890
$this->assertSame( 201, $response->get_status() );
3891+
3892+
$data = $response->get_data();
3893+
$this->assertArrayHasKey( 'meta', $data );
3894+
$this->assertArrayHasKey( '_wp_note_status', $data['meta'] );
3895+
$this->assertSame( $status, $data['meta']['_wp_note_status'] );
38913896
}
38923897

38933898
/**

0 commit comments

Comments
 (0)