[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9

WordPress Trac noreply at wordpress.org
Wed Jul 21 22:21:36 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:                    |     Focuses:
------------------------------+---------------------

Comment (by johnbillion):

 Here's a few I found from a quick listener I knocked up. There's likely
 more.

 * `Tests_WP_Customize_Widgets::setUp()`: https://github.com/WordPress
 /wordpress-
 develop/blob/92c454cec6c214c29ca54859c79d47a8f7d9fa68/tests/phpunit/tests/customize/widgets.php#L67-L73
 * `Tests_AdminBar::get_standard_admin_bar()`: https://github.com/WordPress
 /wordpress-
 develop/blob/92c454cec6c214c29ca54859c79d47a8f7d9fa68/tests/phpunit/tests/adminbar.php#L247-L248
 * `WP_Test_REST_Controller_Testcase::filter_rest_url_for_leading_slash()`:
 https://github.com/WordPress/wordpress-
 develop/blob/92c454cec6c214c29ca54859c79d47a8f7d9fa68/tests/phpunit/includes
 /testcase-rest-controller.php#L48
 * `Tests_User_Session::setUp()`: https://github.com/WordPress/wordpress-
 develop/blob/92c454cec6c214c29ca54859c79d47a8f7d9fa68/tests/phpunit/tests/user/session.php#L15-L16
 * `WP_Test_XML_TestCase::loadXML()`: https://github.com/WordPress
 /wordpress-
 develop/blob/92c454cec6c214c29ca54859c79d47a8f7d9fa68/tests/phpunit/includes
 /testcase-xml.php#L22-L25
 * `WP_Import_UnitTestCase::_import_wp()`: https://github.com/WordPress
 /wordpress-
 develop/blob/92c454cec6c214c29ca54859c79d47a8f7d9fa68/tests/phpunit/tests/import/base.php#L27-L28

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53363#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list