WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #49149


Ignore:
Timestamp:
01/07/2020 10:30:59 PM (3 months ago)
Author:
SergeyBiryukov
Comment:

Thanks for the ticket!

One way to make us feel more secure when working with this class is to have better test coverage for it. Looking at the tests we currently have I found very few tests for this class.

At a glance, most of the existing tests appear to be in these files, somewhat grouped by component:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49149 – Description

    initial v2  
    99Below I organized the WP_Query parameters we should, at first, create tests for. Once we have tests for them individually, we can think of a way to write tests that combine different parameters.
    1010
    11 
     11{{{
    1212* Author params
    1313 * author
     
    8181
    8282* order and orderby paramaters
    83 
     83}}}
    8484
    8585PS - what motivated me to open this ticket (and start working on these tests) was #48556 and #44737