As time goes along, the date archive queries aren't testable in the same way they were back in 2021. The date archives and other archives don't have any posts in the main query and can't assert against have_posts(). This pull request will flip the test around to test against the response on the page instead of the result of WP_Query.
As time goes along, the date archive queries aren't testable in the same way they were back in 2021. The date archives and other archives don't have any posts in the main query and can't assert against
have_posts()
. This pull request will flip the test around to test against the response on the page instead of the result ofWP_Query
.