You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.