Tests: Cover post type lookup from the global post.
Verify get_post_type() uses the global post when called without an argument. Use a local page fixture and rely on the existing test lifecycle to reset global state.
Developed in: https://github.com/WordPress/wordpress-develop/pull/15343
Props shailu25.
See #65819.