mirror of
git://develop.git.wordpress.org/
synced 2025-04-10 07:03:12 +02:00
Sometimes errors only occur in unusual code paths such as the maintenance mode or installation screens. Due to lack of tests for these scenarios in core, such errors are usually only noticed very late. This change adds new end-to-end (e2e) tests to prevent regressions in the following areas: - Maintenance mode (presence of a `.maintenance` file) - Fatal error handler (simulated with an mu-plugin that causes an error) - Installation screen (verifying full installation flow & that there are no database errors) Thanks to these tests, an issue was already found and addressed in the default `wp_die` handler, as `wp_robots_noindex_embeds` and `wp_robots_noindex_search` used to cause PHP warnings due to `$wp_query` not existing. In the future, these tests can be extended to also test scenarios like localized error pages via `wp_load_translations_early()`. Fixes #61240. git-svn-id: https://develop.svn.wordpress.org/trunk@58430 602fd350-edb4-49c9-b593-d223f7449a82