[wp-trac] [WordPress Trac] #41463: Improve REST API tests that don't perform any assertions
WordPress Trac
noreply at wordpress.org
Thu Jul 27 18:02:36 UTC 2017
#41463: Improve REST API tests that don't perform any assertions
-------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.9
Component: REST API | Version: 4.7
Severity: normal | Keywords: needs-unit-tests
Focuses: rest-api |
-------------------------+------------------------------
There are a bunch of REST API tests that don't perform any assertions.
This creates noise in the test results as they get marked as risky tests.
These tests are present because their test class extends the abstract
`WP_Test_REST_Controller_Testcase` class, which requires several methods
to be implemented which don't make sense for all REST API routes.
These tests can be improved so they do actually perform assertions related
to their behaviour.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41463>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list