Resolve anti-pattern in check_edit_permission logic.
If a post_type shouldn't be available via the API we shouldn't allow editing or creating posts.
WP_Query won't return an error, it will just return an empty array.
Add test to confirm we skip returning posts that don't match permission check.
Remove setting the draft's title since we aren't testing it.
Add test for permission error on WP_JSON_Posts_Controller::get_item
Unit tests for error responses in post revisions route.