[wp-trac] [WordPress Trac] #31718: Each unit test in /query/conditionals.php is being called twice.

WordPress Trac noreply at wordpress.org
Sat Mar 21 00:11:24 UTC 2015


#31718: Each unit test in /query/conditionals.php is being called twice.
------------------------------+------------------------------
 Reporter:  tyxla             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch close   |     Focuses:
------------------------------+------------------------------
Changes (by boonebgorges):

 * keywords:  has-patch => has-patch close


Comment:

 >  it does nothing so it can be removed.

 This is not correct. `Tests_Query_VerbosePageRules` extends
 `Tests_Query_Conditionals`, which means it runs all the test methods of
 the latter class. And the two are not redundant, since they run with
 different permalink structures. I'm not sure what the original purpose of
 testing these specific permalink structures was - maybe @dd32 can chime in
 - but I don't think we're looking at a bug.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31718#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list