Skip to content

v1.17.0

Choose a tag to compare

@github-actions github-actions released this 20 Jan 18:25
· 28 commits to 1.x since this release
3689794

Added

  • Added a Carbon class and travel() helper in tests to make time mocking easier during testing.
  • Added proper support for testing robots.txt, feeds, and sitemaps via the testing framework's HTTP request methods.
  • Added a Spy_Sitemaps_Renderer class to replace the sitemap renderer during testing to allow for spying on sitemap render calls.

Changed

  • Potentially breaking: The $wp_rewrite global and public query variables in WP are now backed up before any tests are run and restored before each test to prevent side effects from tests that modify these globals. This will allow tests to properly modify the rewrite rules and public query variables without affecting other tests.
  • Adds PHPStan testing to more traits.
  • Clear object metadata lazy load queue when tearing down a test.