id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 35954 Prevent test environment contamination when HTTPS related assertions fail johnbillion johnbillion "Several tests which are related to HTTPS alter the `$_SERVER['HTTPS']` variable, but then perform assertions before this value is reset. When these assertions fail, it has a knock-on affect for other tests because the resets don't occur, and we get cascading failures as a result. Ideally we should audit every one of our tests to ensure any environment changes (including things such as post type registration, messing with other superglobals, etc) only perform their assertions after the resets happen, but the HTTPS tests are what I'm focusing on for now." task (blessed) closed normal 4.5 Build/Test Tools normal fixed