Tests: Cover REST authentication cookie status.
Verify rest_cookie_collect_status() records successful authentication and the failure status associated with cookie validation actions.
rest_cookie_collect_status()
Developed in: https://github.com/WordPress/wordpress-develop/pull/15293
Props shailu25. See #65819.