[wp-trac] [WordPress Trac] #30860: Add unit tests for plugin.php

WordPress Trac noreply at wordpress.org
Tue Dec 30 19:30:09 UTC 2014


#30860: Add unit tests for plugin.php
------------------------------+---------------------------
 Reporter:  sgrant            |       Owner:  boonebgorges
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.2
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |     Focuses:
------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31003"]:
 {{{
 #!CommitTicketReference repository="" revision="31003"
 When no plugins are active, return an empty array from
 `validate_active_plugins()`.

 This creates parity with the behavior of the function when plugins *are*
 active,
 but none are invalid. It also makes it possible to write unit tests for
 the
 function.

 Props sgrant.
 Fixes #30860.
 }}}

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


More information about the wp-trac mailing list