Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit 301f33b

Browse files
Update to explicitly test for properly-formed title
1 parent da604bb commit 301f33b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test-rest-posts-controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ public function test_create_post_with_quotes_in_title() {
736736
) );
737737
$request->set_body_params( $params );
738738
$response = $this->server->dispatch( $request );
739-
$this->check_create_post_response( $response );
739+
$new_data = $response->get_data();
740+
$this->assertEquals( "Rob O'Rourke's Diary", $new_data['title']['raw'] );
740741
}
741742

742743
public function test_update_item() {

0 commit comments

Comments
 (0)