[wp-trac] [WordPress Trac] #51166: Move and update unit tests for selected() and checked()
WordPress Trac
noreply at wordpress.org
Fri Aug 28 02:26:50 UTC 2020
#51166: Move and update unit tests for selected() and checked()
------------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
------------------------------+----------------------------------------
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].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list