I'm doing unit tests for my plugin, and in my unit test, I check some basic things such as posting a custom post type. My script can create new post, and I can retrieve the ID of the posted item (I'm redirected to an URL like
http://wordpress.loc/wp-admin/post.php?post=16&action=edit&message=6, so I can deduce that the new post has the ID 16).
From this ID, I'd like to check if the post is as it should be by accessing it via URL, with something like
http://wordpress.loc/?post=16, but I can't find a way to get directly to my new post using just the ID and without doing any PHP stuff.
Is that possible?