alleyinteractive / archiveless

WordPress plugin to hide posts from archives (lists)
GNU General Public License v2.0
8 stars 4 forks source link

Fix unit tests and ensure that tests pass with twentytwentythree #58

Closed srtfisher closed 1 year ago

srtfisher commented 1 year ago

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.