[wp-trac] [WordPress Trac] #50986: PHPUnit tests: unregister custom settings after rest-api tests
WordPress Trac
noreply at wordpress.org
Thu Aug 13 13:57:20 UTC 2020
#50986: PHPUnit tests: unregister custom settings after rest-api tests
--------------------------+-----------------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Keywords:
Focuses: |
--------------------------+-----------------------------
Most of the tests in `tests/phpunit/tests/rest-api/rest-settings-
controller.php` are removing the settings they after performing the
assertions.
However, not all of them do, which means that those settings may be
leaking to other tests. This is not breaking any tests at the moment, but
may cause issues when the order of the tests changes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50986>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list