[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9
WordPress Trac
noreply at wordpress.org
Wed Nov 3 02:56:41 UTC 2021
#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"51999" 51999]:
{{{
#!CommitTicketReference repository="" revision="51999"
Tests: Clean up the `$_REQUEST` superglobal in
`WP_UnitTestCase_Base::clean_up_global_scope()`.
This resolves an issue where setting up `$_REQUEST['post_type']` and not
clearing it afterwards in
`Tests_Admin_IncludesScreen::setup_block_editor_test()` started affecting
a few `WP_Comments_List_Table` tests after [51997]. It also ensures a
similar issue does not inadvertently happen in other tests.
Follow-up to [760/tests], [51997].
See #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53363#comment:107>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list