Opened 3 years ago
Last modified 3 years ago
#41463 accepted enhancement
Improve REST API tests that don't perform any assertions
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | REST API | Keywords: | needs-unit-tests |
Focuses: | rest-api | Cc: |
Description
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.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
In 41176: