Tests: Add coverage for author_can().
Verify that capability checks use the post author independently of the current user, accept post objects and IDs, and forward extra arguments for meta capabilities. Cover missing posts and missing authors.
Developed in: https://github.com/WordPress/wordpress-develop/pull/14333
Props rejaulalomkhan.
See #65819.