id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 51166 Move and update unit tests for selected() and checked() SergeyBiryukov SergeyBiryukov "Background: #9862 Unit tests for `selected()` and `checked()` functions were added in [231/tests] and expanded in [232/tests]. At the time, the functions were in `wp-admin/includes/template.php`, so the tests were added to `phpunit/tests/admin/includesTemplate.php`. The functions were later moved to `wp-includes/general-template.php` in [13658], but the tests were never updated for the new location, they should now be in `phpunit/tests/general/template.php`. The tests could also be converted to use [https://phpunit.readthedocs.io/en/9.3/writing-tests-for-phpunit.html#data-providers data providers]." defect (bug) closed normal 5.6 Build/Test Tools normal fixed good-first-bug has-patch has-unit-tests